Closed GoogleCodeExporter closed 9 years ago
The same applies to Windows platform. If "tsk_thread_join" is not called, the
thread HANDLE is never deallocated (See MSDN
http://msdn.microsoft.com/en-us/library/ms682453.aspx):
The thread object remains in the system until the thread has terminated and all
handles to it have been closed through a call to CloseHandle.
Original comment by laurent.etiemble@gmail.com
on 22 Jun 2010 at 1:25
By convention, void** parameters are used to return values. As the returned
value is a pointer this means that the caller is responsible for the newly
allocated memory. If you don't wish to use "tsk_thread_join()", then you could
simply use CloseHandle() or free() in the thread's id.
To avoid zombie threads, it's highly recommended to call tsk_thread_join().
Original comment by boss...@yahoo.fr
on 28 Jun 2010 at 1:19
Original comment by boss...@yahoo.fr
on 21 Aug 2010 at 10:17
Original issue reported on code.google.com by
laurent.etiemble@gmail.com
on 22 Jun 2010 at 1:07