Re: [fpc-pascal] Thread IDs

2010-02-19 Thread Wimpie Nortje
I found some inconsistencies a couple of months ago, but never got to creating a bug report: http://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg17337.html lists.freepascal.org seems down, so I found this link. VIncent ___ fpc-pascal

[fpc-pascal] Thread IDs

2010-02-18 Thread Wimpie Nortje
Hello list, What is the difference between GetThreadID() and GetCurrentThreadID()? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Thread IDs

2010-02-18 Thread Jonas Maebe
On 18 Feb 2010, at 16:35, Wimpie Nortje wrote: What is the difference between GetThreadID() and GetCurrentThreadID()? There is a threadvar called threadid in the system unit. When a new thread is started, GetCurrentThreadID is called to obtain the thread id of the new thread (via the

Re: [fpc-pascal] Thread IDs

2010-02-18 Thread Wimpie Nortje
Jonas Maebe wrote: On 18 Feb 2010, at 16:35, Wimpie Nortje wrote: What is the difference between GetThreadID() and GetCurrentThreadID()? There is a threadvar called threadid in the system unit. When a new thread is started, GetCurrentThreadID is called to obtain the thread id of the new

Re: [fpc-pascal] Thread IDs

2010-02-18 Thread Vincent Snijders
Wimpie Nortje schreef: Jonas Maebe wrote: On 18 Feb 2010, at 16:35, Wimpie Nortje wrote: What is the difference between GetThreadID() and GetCurrentThreadID()? There is a threadvar called threadid in the system unit. When a new thread is started, GetCurrentThreadID is called to obtain