Changeset 650 for trunk/libs/libpthread
- Timestamp:
- Nov 14, 2019, 11:44:12 AM (5 years ago)
- Location:
- trunk/libs/libpthread
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/libpthread/pthread.c
r637 r650 51 51 ///////////////////////////////////// 52 52 int pthread_join( pthread_t trdid, 53 void ** exit_ value)53 void ** exit_status ) 54 54 { 55 55 return hal_user_syscall( SYS_THREAD_JOIN, 56 56 (reg_t)trdid, 57 (reg_t)exit_ value, 0, 0 );57 (reg_t)exit_status, 0, 0 ); 58 58 } 59 59 … … 65 65 } 66 66 67 ///////////////////////////////////// 68 int pthread_exit( void * exit_ value)67 ////////////////////////////////////// 68 int pthread_exit( void * exit_status ) 69 69 { 70 70 return hal_user_syscall( SYS_THREAD_EXIT, 71 (reg_t)exit_ value, 0, 0, 0 );71 (reg_t)exit_status, 0, 0, 0 ); 72 72 } 73 73 -
trunk/libs/libpthread/pthread.h
r647 r650 50 50 * This blocking function causes the calling thread to wait for the termination of a target 51 51 * thread identified by the <trdid> argument. The <exit_value> defines the buffer to store 52 * the pointer returned by the t erminatingthread.53 ********************************************************************************************* 54 * @ trdid : target thread identifier in process.55 * @ start_args : [in] pointer on start function arguments.52 * the pointer returned by the target thread. 53 ********************************************************************************************* 54 * @ trdid : [in] target thread identifier in process. 55 * @ exit_status : [out] buffer for pointer returned by target thread to joining thread. 56 56 * @ return 0 if success / return -1 if failure. 57 57 ********************************************************************************************/ 58 58 int pthread_join( pthread_t trdid, 59 void ** exit_ value);59 void ** exit_status ); 60 60 61 61 /********************************************************************************************* … … 70 70 71 71 /********************************************************************************************* 72 * This function terminates the execution of the calling thread, and makes the exit_value72 * This function terminates the execution of the calling thread, and makes the <exit_status> 73 73 * pointer available to any successful pthread_join() with the terminating thread. 74 74 ********************************************************************************************* 75 * @ exit_ vallue : [in] pointer to be returned to parent thread if thread is attached.76 * @ return 0 if success / return -1 if failure. 77 ********************************************************************************************/ 78 int pthread_exit( void * exit_ value);75 * @ exit_status : [in] pointer to be returned to joining thread. 76 * @ return 0 if success / return -1 if failure. 77 ********************************************************************************************/ 78 int pthread_exit( void * exit_status ); 79 79 80 80 /*********************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.