Re: [Mesa-dev] [PATCH 3/3] c11/threads: Don't implement thrd_current on Windows.

2014-03-03 Thread Brian Paul
On 03/03/2014 02:41 PM, jfons...@vmware.com wrote: From: José Fonseca GetCurrentThread() returns a pseudo-handle (a constant which can only be used within the calling thread) and not a real handle. DuplicateHandle will return a real handle, but it will create a new handle every time we call.

[Mesa-dev] [PATCH 3/3] c11/threads: Don't implement thrd_current on Windows.

2014-03-03 Thread jfonseca
From: José Fonseca GetCurrentThread() returns a pseudo-handle (a constant which can only be used within the calling thread) and not a real handle. DuplicateHandle will return a real handle, but it will create a new handle every time we call. Calling DuplicateHandle here means we will leak handl