Ignore:
Timestamp:
Dec 20, 2017, 4:51:09 PM (4 years ago)
Author:
alain
Message:

Fix bugs in exec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/syscalls.h

    r408 r409  
    4040 * and makes the exit_value pointer available to any successful pthread_join() with the
    4141 * terminating thread.
    42  ******************************************************************************************
    43  * @ exit_vallue  : pointer to be returned to parent thread if thread is attached.
    44  * @ return 0 if success / return -1 if failure.
     42 * It actually set the THREAD_SIG_EXIT signal, set the THREAD_BLOCKED_GLOBAL bit in the
     43 * thread descriptor and deschedule.
     44 * The thread will be detached from its process, and the memory allocated to the thread
     45 * descriptor will be released later by the scheduler.
     46 ******************************************************************************************
     47 * @ exit_vallue  : pointer to be returned to joining thread if thread is attached.
     48 * @ return 0 if success / return -1 if all locks not released or illegal argument.
    4549 *****************************************************************************************/
    4650int sys_thread_exit( void * exit_value );
     
    8791 * [4] This function detach a joinable thread.
    8892 ******************************************************************************************
    89  * @ trdid   : thread identifier.i
     93 * @ trdid   : thread identifier.
    9094 * @ return 0 if success / return -1 if failure.
    9195 *****************************************************************************************/
     
    9397
    9498/******************************************************************************************
    95  * [5] This slot is not used.
    96  *****************************************************************************************/
     99 * [5] This function requests a target thread identified by its <trdid> argument
     100 * to be cancelled. Depending on killer thread and target thread location, it calls
     101 * the thread_kil() function or the rpc_thread_kill_client() function to do the work.
     102 * It actually set the THREAD_SIG_KILL signal, set the THREAD_BLOCKED_GLOBAL bit in the
     103 * target thread descriptor and return.
     104 * The thread will be detached from its process, and the memory allocated to the thread
     105 * descriptor will be released later by the scheduler.
     106 ******************************************************************************************
     107 * @ trdid   : thread identifier.
     108 * @ return 0 if success / return -1 if illegal argument.
     109 *****************************************************************************************/
     110int sys_thread_cancel( trdid_t  trdid );
    97111
    98112/******************************************************************************************
     
    158172 * @ status   : terminaison status (not used in present implementation).
    159173 *****************************************************************************************/
    160 void sys_exit( uint32_t status );
     174int sys_exit( uint32_t status );
    161175
    162176/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.