Prepares this instance, creating (but not starting) the thread.
Namespace: CleanCode.ThreadingAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
public abstract Thread Setup()
public abstract Thread Setup()
Public MustOverride Function Setup As Thread
Public MustOverride Function Setup As Thread
public:
virtual Thread^ Setup() abstract
public:
virtual Thread^ Setup() abstract
Return Value
Thread created
Must be overridden by subclass and return a thread with an
appropriate entry point, along with other preparation
peculiar to your subclass. The typical final line might be
return new Thread(new ThreadStart(myEntryPoint));
return new Thread(new ThreadStart(myEntryPoint));
where
myEntryPoint is a method in your subclass
with no arguments.
This method should not be called in user code; it is called
by the
ThreadManager when its
Add(ThreadWorker) method is invoked.