Home |
RTKernel-32 Programming Manual Multitasking, Real-Time, and RTKernel-32 Alternate APIs for RTKernel-32 RTKernel-C 4.5 for DOS Compatible API Win32 and RTKernel-32 Error Handling Mixing RTKernel-32 and Win32 APIs Function TerminateThread Function InitializeCriticalSection Function InitializeCriticalSectionAndSpinCount Function TryEnterCriticalSection Function DeleteCriticalSection Function WaitForMultipleObjects Function QueryPerformanceCounter Function QueryPerformanceFrequency Function GetSystemTimeAdjustment Function SetThreadAffinityMask Function SetThreadGroupAffinity |
Function TerminateThreadIf the given handle references an existing thread, the thread is terminated. Different from running under Win32, the thread continues to run until all resource and mutex semaphores have been released. The stack of the task is deallocated. Terminating the last thread of a program does not terminate the program (RTKernel-32's Idle Task would continue to run). The Win32 handle is not closed (this behavior is identical to Win32). If one or more tasks are waiting for the termination of the task, they are released by this call. Threads created with C/C++ run-time system functions such as _beginthread or RTKRTLCreateThread should not use this function; _endthread should be used instead.
|