Ct_handle ct_self( void );
A Ct_handle serves as an address by which a thread may send a message to another thread. Calling ct_self() enables a thread to send a message to itself. More importantly, it enables a thread to send a message containing its own handle as a return address, so that the other thread can respond.
If called from a user exit, ct_self() returns a handle for the thread with which the user exit is associated.
If you insist on calling ct_self() while the scheduler is not running, it will return a null handle -- a Ct_handle not pointing to any thread. If you use a null handle as the destination of a message, Cheap Threads will silently discard the message.