[fpc-pascal] What's the deal with CloseThread?

Marco van de Voort marcov at stack.nl
Tue Apr 23 15:22:00 CEST 2013


In our previous episode, Anthony Walter said:
> > True. But that only means that the beginthread interface is relatively
> > little used because everybody uses tthread.
> 
> But on i386-linux TThread does use BeginThread and never calls CloseThread.
> So that seems contrary to the rule we are discussing in the documentation.

The TThread code was never specified in terms of the procedural api. As said
the procedural api largely came after tthread was stable.

Probably at some point calls to the threadmanager were substituted with
calls to beginthread.




More information about the fpc-pascal mailing list