Title:
-
self() - get the thread object for this calling thread,
namely the current thread itself.
-
Usage:
- self()
-
Side Effect:
-
Returns the thread object identifying this calling thread.
This can be used to insert the "return address" into an expression being sent to another
thread via sendTask by identifying this thread.
Also, certain functions
require a thread handle (such as threadQueue)
and these can be called from within a thread for itself using
self().
- Note
This is implemented through the evaluator manager.
-
Examples:
threadQueue(self())
-
See Also:
- thread class
-
Key Words:
- User Level Threads
Last modified: Thu Feb 6 15:07:24 1997