Changeset 409 for trunk/kernel/syscalls/syscalls.h
- Timestamp:
- Dec 20, 2017, 4:51:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/syscalls.h
r408 r409 40 40 * and makes the exit_value pointer available to any successful pthread_join() with the 41 41 * 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. 45 49 *****************************************************************************************/ 46 50 int sys_thread_exit( void * exit_value ); … … 87 91 * [4] This function detach a joinable thread. 88 92 ****************************************************************************************** 89 * @ trdid : thread identifier. i93 * @ trdid : thread identifier. 90 94 * @ return 0 if success / return -1 if failure. 91 95 *****************************************************************************************/ … … 93 97 94 98 /****************************************************************************************** 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 *****************************************************************************************/ 110 int sys_thread_cancel( trdid_t trdid ); 97 111 98 112 /****************************************************************************************** … … 158 172 * @ status : terminaison status (not used in present implementation). 159 173 *****************************************************************************************/ 160 voidsys_exit( uint32_t status );174 int sys_exit( uint32_t status ); 161 175 162 176 /******************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.