#include <revolution/os.h>
void OSCancelThread (OSThread* thread);
|
Pointer to thread to terminate. |
None.
Stops the specified thread. If suspended on a thread queue, the thread specified by thread is removed from the queue. All mutexes held by thread will be released. (All threads waiting to be joined using OSJoinThread will be made runnable.)
If the detached attribute is set for the thread specified by thread, the thread will be removed immediately from the execution queue.
If the detached attribute is not set, the thread specified by thread will be removed from the execution queue only when all joined threads start executing.
Thread Synchronization , Thread Synchronization Functions, OSCreateThread, OSExitThread, OSJoinThread
03/01/2006 Initial version.