Tells the system that the current thread has finished processing.
void _endthread (int value);
void endthread (int value);
Required Header |
<process.h> |
Return Value
None.
Parameters
value
The return value passed to _syncthread
Remarks
The _endthread function signals that the current thread has finished execution and has a return value that should be passed to _syncthread. It is not necessary to call _endthread since the threads entry point was a function pointer which returned an integer, and the ending of that function implicitly calls _endthread. However _endthread may be used from within a deep function nesting to finish thread execution.
See Also _beginthread, _syncthread, _threadpriority, _threadstatus