[M3devel] pthread_create => pthread_join?
Jay K
jay.krell at cornell.edu
Mon Nov 30 11:20:00 CET 2009
I was wondering..how does one cleanup the result of pthread_create?
http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_join.html
"It is unspecified whether a thread that has exited but remains unjoined counts against _POSIX_THREAD_THREADS_MAX"
We never call pthread_join.
We have our own mechanism.
We should probably call pthread_join though?
Or detach is sufficient?
http://www.opengroup.org/onlinepubs/000095399/functions/pthread_detach.html
"The pthread_join() or pthread_detach() functions should eventually be called for every thread that is created so that storage associated with the thread may be reclaimed
"
But what about the wording pthread_join?
- Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091130/9b96f54f/attachment-0001.html>
More information about the M3devel
mailing list