Changeset 583 for trunk/kernel/kern/thread.h
- Timestamp:
- Nov 1, 2018, 12:10:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.h
r580 r583 72 72 #define THREAD_FLAG_JOIN_DONE 0x0002 /*! Parent thread made a join request */ 73 73 #define THREAD_FLAG_KILL_DONE 0x0004 /*! This thread received a kill request */ 74 #define THREAD_FLAG_SCHED 0x0008 /*! Scheduling required for this thread */75 74 #define THREAD_FLAG_REQ_ACK 0x0010 /*! Acknowledge required from scheduler */ 76 75 #define THREAD_FLAG_REQ_DELETE 0x0020 /*! Destruction required from scheduler */ … … 334 333 * is marked for delete. This include the thread descriptor itself, the associated 335 334 * CPU and FPU context, and the physical memory allocated for an user thread local stack. 336 * The destroyed thread is removed from the local process th_tbl[] array, and returns337 * true when the destroyed thread was the last thread registered in process.338 335 *************************************************************************************** 339 336 * @ thread : pointer on the thread descriptor to release. 340 337 * @ return true, if the thread was the last registerd thread in local process. 341 338 **************************************************************************************/ 342 bool_tthread_destroy( thread_t * thread );339 void thread_destroy( thread_t * thread ); 343 340 344 341 /*************************************************************************************** … … 390 387 * to asynchronously delete the target thread, at the next scheduling point. 391 388 * The calling thread can run in any cluster, as it uses remote accesses, but 392 * the target thread cannot be the main thread of the process identified by the <pid> ,393 * because the main thread must be deleted by the parent process argument.389 * the target thread cannot be the main thread of the process identified by the <pid> 390 * argument, because the main thread must be deleted by the parent process argument. 394 391 * If the target thread is running in "attached" mode, and the <is_forced> argument 395 392 * is false, this function implements the required sychronisation with the joining 396 * thread, blocking the calling thread until the pthread_join() syscall is executed. 393 * thread, blocking the killer thread until the pthread_join() syscall is executed 394 * by the joining thread. 397 395 *************************************************************************************** 398 396 * @ thread_xp : extended pointer on the target thread.
Note: See TracChangeset
for help on using the changeset viewer.