Changeset 650 for trunk/libs/libpthread


Ignore:
Timestamp:
Nov 14, 2019, 11:44:12 AM (3 years ago)
Author:
alain
Message:

Simplify the pthread_parallel_create() syscall.

Location:
trunk/libs/libpthread
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/libpthread/pthread.c

    r637 r650  
    5151/////////////////////////////////////
    5252int pthread_join( pthread_t    trdid,
    53                   void      ** exit_value )
     53                  void      ** exit_status )
    5454{
    5555    return hal_user_syscall( SYS_THREAD_JOIN,
    5656                             (reg_t)trdid,
    57                              (reg_t)exit_value, 0, 0 );
     57                             (reg_t)exit_status, 0, 0 );
    5858}
    5959
     
    6565}
    6666
    67 /////////////////////////////////////
    68 int pthread_exit( void * exit_value )
     67//////////////////////////////////////
     68int pthread_exit( void * exit_status )
    6969{
    7070    return hal_user_syscall( SYS_THREAD_EXIT,
    71                              (reg_t)exit_value, 0, 0, 0 );
     71                             (reg_t)exit_status, 0, 0, 0 );
    7272}
    7373
  • trunk/libs/libpthread/pthread.h

    r647 r650  
    5050 * This blocking function causes the calling thread to wait for the termination of a target
    5151 * thread identified by the <trdid> argument. The <exit_value> defines the buffer to store
    52  * the pointer returned by the terminating thread.
    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.
    5656 * @ return 0 if success / return -1 if failure.
    5757 ********************************************************************************************/
    5858int pthread_join( pthread_t    trdid,
    59                   void      ** exit_value );
     59                  void      ** exit_status );
    6060
    6161/*********************************************************************************************
     
    7070
    7171/*********************************************************************************************
    72  * This function terminates the execution of the calling thread, and makes the exit_value
     72 * This function terminates the execution of the calling thread, and makes the <exit_status>
    7373 * pointer available to any successful pthread_join() with the terminating thread.
    7474 *********************************************************************************************
    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 ********************************************************************************************/
     78int pthread_exit( void * exit_status );
    7979
    8080/*********************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.