Click or drag to resize
CMSThread Methods

The CMSThread type exposes the following members.

Methods
  NameDescription
Public methodAbort
Aborts the thread execution. In case of sync mode thread, this method also kills all CMSThreads running under same InnerThread.
Public methodStatic memberAllowEmptyContext
Allows anonymous thread to use new dedicated context in subsequent calls. Call this method in case the anonymous thread isn't initiated from a request thread, or in case you want to start with an empty thread context on purpose.
Protected methodCloseThreadContext
Closes the thread context.
Public methodDispose
Disposes the thread object.
Public methodStatic memberGetCurrentThreadId
Gets the current thread ID
Public methodGetDuplicityKey
Gets the duplicity key for the worker to eliminate duplicit queued workers.
(Inherited from AbstractWorker.)
Public methodStatic memberGetThread
Finds the thread based on the given GUID.
Public methodJoin
Blocks the calling thread until a thread terminates, while continuing to perform standard COM and SendMessage pumping.
Public methodLoadTargetDelegateInfo
Sets the target delegate information
Protected methodPrepareEmptyThreadContext
Prepares empty thread context for thread with UseEmptyContext set.
Protected methodPrepareThreadContext
Prepares the thread context
Protected methodRaiseStop
Raises OnStop event.
(Inherited from AbstractWorker.)
Public methodRun
Runs the action.
(Overrides AbstractWorkerRun.)
Public methodRunAsync
Runs the worker as a new thread. For internal purposes only, use method Start instead.
(Overrides AbstractWorkerRunAsync.)
Public methodStart
Starts the thread.
Public methodStop
Stops the thread execution (doesn't log abort exception). In case of sync mode thread, this method only stops this and child synchronous threads. Parent threads running under same InnerThread will continue running.
Public methodStatic memberStopped
Returns true if thread was aborted with ABORT_REASON_STOP state info e.g. Thread.Abort(CMSThread.ABORT_REASON_STOP);
Public methodStatic memberWaitForSequence
Waits for the current sequence thread to terminate
Public methodStatic memberWrap(Action, Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrapT(ActionT, Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrapT1, T2(ActionT1, T2, Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrapFuncTResult(FuncTResult, Boolean)
Wraps the given method into CMSThread context
Public methodStatic memberWrapFuncT1, TResult(FuncT1, TResult, Boolean)
Wraps the given method into CMSThread context
Top
See Also