[fpc-pascal] GetThreadId, GetCurrentThreadId and MainThreadId
joshyfun at gmail.com
Tue Sep 8 17:35:42 CEST 2009
Tuesday, September 8, 2009, 2:02:46 PM, you wrote:
VS> If cthreads is used, I get the following output:
VS> 4. What is the difference between GetThreadID and
VS> GetCurrentThreadID? This code runs
VS> in the same thread, so I expect the same value.
Hmmm... It looks to me as GetThreadID return the current thread handle
instead the ID. In Windows both are different things but I do not know
in other OS.
Anyway the name is badly choosen as it conflicts with Windows
More information about the fpc-pascal