[Issue 318] wait does not release thread resources on Linux

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 19 17:05:18 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=318





------- Comment #2 from chris at dprogramming.com  2006-11-19 19:05 -------
> As an unrelated issue, I just noticed that CloseHandle is not being 
> called on the thread handle for Win32, and pthread_detach is not being 
> called for Posix.  I think this should be done in a thread dtor or the 
> equivalent to ensure resources are properly released.
> 

Yes, this is very important. This is a huge bug.
Sometimes one uses "throwaway" threads that just do one thing and terminate.
Currently, it will cause a huge leak and potential errors.


-- 




More information about the Digitalmars-d-bugs mailing list