Re: : [Gc] GC + Windows Mobile + Threads + Patch for WINCE
ivmai at mail.ru
Fri Aug 21 10:38:56 PDT 2009
Henning Makholm <makholm at octoshape.com> wrote:
> Ivan Maidanski writes:
> > Henning Makholm <makholm at octoshape.com> wrote:
> >> On the other hand Windows CE documents that the value of
> >> GetCurrentThreadId() is actually a handle for the thread
> >> -- which is not true in ordinary win32.
> > Yes, thanks, I've looked again in kfuncs.c:
> > But how can we get a thread handle visible from another thread?
> As far as I understand the documentation, this is what GetCurrentThreadId()
> should do (but again, only on CE).
Hmm, MSDN says: This identifier is also the handle of the thread.
If I understood this correctly, handle = (HANDLE)GetCurrentThreadId() on WinCE (I guess it won't work for 64-bit embedded devices ;) ).
Zeyi Lee, could you try this for your target.
More information about the Gc