Quote:
Piru wrote:
For the interested: The actual implementation uses the new exec TLS functionality
Btw, the example code in TLSCallDestructors() autodoc using SIGF_SINGLE is not really safe.
Random wild example: if current or future implementation of CreateNewProc() did some debug output after AddTask() and debug output for some reasons happens to need to do some semaphore locking then the created task doing (Signal(parent, SIGF_SINGLE)) could erranouesly wake up the CreateNewProc() which by bad luck is still blocked in ObtainSemaphore() call.