RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIpClient.GetThreadObject Method

Returns a reference to the TThread object for the currently executing thread.

Pascal
function GetThreadObject: TClientSocketThread;
C++
__fastcall TClientSocketThread GetThreadObject();

Call GetThreadObject to obtain a reference to the currently executing thread. GetThreadObject is only useful when BlockMode is set to bmBlockingMode, which means that the client is executing in its own thread. If this method is called from the main application thread, the value NULL is returned. 

 

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