home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3p / pthread_exit.z / pthread_exit
Encoding:
Text File  |  2002-10-03  |  2.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. pppptttthhhhrrrreeeeaaaadddd____eeeexxxxiiiitttt((((3333PPPP))))                                              pppptttthhhhrrrreeeeaaaadddd____eeeexxxxiiiitttt((((3333PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pthread_exit - terminate the calling thread
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
  13.  
  14.      vvvvooooiiiidddd pppptttthhhhrrrreeeeaaaadddd____eeeexxxxiiiitttt((((vvvvooooiiiidddd ****rrrreeeettttvvvvaaaallll))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The _p_t_h_r_e_a_d__e_x_i_t() function terminates the calling thread.  If the thread
  18.      is not detached, then the value _r_e_t_v_a_l may be retrieved by
  19.      _p_t_h_r_e_a_d__j_o_i_n().  If a thread returns from its start function [see
  20.      _p_t_h_r_e_a_d__c_r_e_a_t_e()] it acts as if it had called _p_t_h_r_e_a_d__e_x_i_t() with _r_e_t_v_a_l
  21.      as the value returned.  A thread implicitly exits when it acts on a
  22.      cancellation request [see _p_t_h_r_e_a_d__c_a_n_c_e_l()].
  23.  
  24.      When a thread exits it pops and executes any cancellation handlers which
  25.      are still active [see _p_t_h_r_e_a_d__c_l_e_a_n_u_p__p_u_s_h()].  Following the handlers,
  26.      per-thread data is destroyed by invoking the destructor function for any
  27.      non-zero thread specific values associated with active keys [see
  28.      _p_t_h_r_e_a_d__k_e_y__c_r_e_a_t_e()].
  29.  
  30.      When the last thread terminates the process exits with a zero status
  31.      value.
  32.  
  33. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  34.      No value is returned by _p_t_h_r_e_a_d__e_x_i_t().
  35.  
  36. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  37.      pthread_create(3P), pthread_join(3P), pthread_cancel(3P),
  38.      pthread_cleanup_push(3P), pthread_key_create(3P).
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.