I was looking at threading support in the System unit and also in the
TThread class.

According to the documentation at
http://www.freepascal.org/docs-html/rtl/system/closethread.html

CloseThread must be called on any thread started with BeginThread. It must
be called after the thread has ended (either by exiting the thread function
or after calling EndThread).

BUT

Looking at the TThread class, which does indeed use BeginThread in
TThread.SysCreate (tthread.inc), I see no corresponding call the
CloseThread. I grepped the entire fpc source tree and found no references
anywhere to any code which calls CloseThread.

So what's the deal? Is the documentation wrong or is there something going
on with TThread I'm not seeing?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to