This
method is a mutator function that sets the thread of a reactive object.
It is an alternate way to set the thread instead of providing it in
the reactive object's constructor.
This
method is called by OMReactive, the constructor for
a reactive object.
Note: Calling
setThread out
of the object
CTOR is dangerous on systems where
reactive objects can be deleted, because the events in the queue of
the old thread will not be canceled upon the destruction of the reactive
object.
Signaturevirtual void setThread (OMThread *t,
OMBoolean OMReactive class = FALSE);
Parameterst
Specifies the thread to be set
active
Signals the reactive instance that it
is also active (the user object also inherits from OMThread)