[Gc] RE: GC + Windows Mobile + Threads + Patch for WINCE

Henning Makholm makholm at octoshape.com
Fri Aug 21 09:38:19 PDT 2009

> Unfortunately, the function "GetCurrentThread" kept returning the same handles.

GetCurrentThread is documented to return a pseudo-handle that means
"whichever thread passes the psedo handle as an argument to a system call".
The pseudo-handle is the same no matter which thread calls the function.

That is the documented behavior even for Windows CE:

MSDN> The function cannot be used by one thread to create a handle that
MSDN> can be used by other threads to refer to the first thread. The
MSDN> handle is always interpreted as referring to the thread that is
MSDN> using it.


Henning Makholm
Octoshape ApS

More information about the Gc mailing list