RAD Studio
ContentsIndex
PreviousUpNext
_endthreadex

Header File 

process.h  

Category 

Process Control Routines 

Prototype 

void _endthreadex(unsigned thread_retval); 

Description 

Terminates execution of the current thread by calling the ExitThread API, but without closing the handle. The thread must have been created by an earlier call to _beginthreadex. The runtime library will call _endthreadex autotmatically, when your thread function terminates. _endthreadex receives the return value of your thread function in thread_retval, and will pass it along to the Win32 ExitThread API.

Note: Note: Performs the same operation as _endthread(), but does not close the thread handle.
Return Value 

None.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!