pthread_exit.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!-- manual page source format generated by PolyglotMan v3.2, -->
  2. <!-- available at http://polyglotman.sourceforge.net/ -->
  3. <html>
  4. <head>
  5. <title>PTHREAD_EXIT(3) manual page</title>
  6. </head>
  7. <body bgcolor='white'>
  8. <a href='#toc'>Table of Contents</a><p>
  9. <p>
  10. <h2><a name='sect0' href='#toc0'>Name</a></h2>
  11. pthread_exit - terminate the calling thread
  12. <p>
  13. <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
  14. <b>#include &lt;pthread.h&gt;</b>
  15. <p> <b>void pthread_exit(void *</b><i>retval</i><b>);</b>
  16. <p>
  17. <h2><a name='sect2' href='#toc2'>Description</a></h2>
  18. <b>pthread_exit</b> terminates the
  19. execution of the calling thread. All cleanup handlers that have been set
  20. for the calling thread with <a href='file:pthread_cleanup_push.html'><b>pthread_cleanup_push</b>(3)</a>
  21. are executed in reverse
  22. order (the most recently pushed handler is executed first). Finalization
  23. functions for thread-specific data are then called for all keys that have
  24. non- <b>NULL</b> values associated with them in the calling thread (see <a href='file:pthread_key_create.html'><b>pthread_key_create</b>(3)</a>
  25. ).
  26. Finally, execution of the calling thread is stopped.
  27. <p> The <i>retval</i> argument
  28. is the return value of the thread. It can be consulted from another thread
  29. using <a href='file:pthread_join.html'><b>pthread_join</b>(3)</a>
  30. .
  31. <p>
  32. <h2><a name='sect3' href='#toc3'>Return Value</a></h2>
  33. The <b>pthread_exit</b> function never returns.
  34. <p>
  35. <h2><a name='sect4' href='#toc4'>Author</a></h2>
  36. Xavier Leroy &lt;[email protected]&gt;
  37. <p>
  38. <h2><a name='sect5' href='#toc5'>See Also</a></h2>
  39. <a href='file:pthread_create.html'><b>pthread_create</b>(3)</a>
  40. , <a href='file:pthread_join.html'><b>pthread_join</b>(3)</a>
  41. .
  42. <p>
  43. <hr><p>
  44. <a name='toc'><b>Table of Contents</b></a><p>
  45. <ul>
  46. <li><a name='toc0' href='#sect0'>Name</a></li>
  47. <li><a name='toc1' href='#sect1'>Synopsis</a></li>
  48. <li><a name='toc2' href='#sect2'>Description</a></li>
  49. <li><a name='toc3' href='#sect3'>Return Value</a></li>
  50. <li><a name='toc4' href='#sect4'>Author</a></li>
  51. <li><a name='toc5' href='#sect5'>See Also</a></li>
  52. </ul>
  53. </body>
  54. </html>