Tracked thread object that wraps a single created thread and enables that all active wrapped threads are are tracked (i.e. a list of all active tracked threads can be obtained at any time).
More...
|
| TrackedThread (ParameterizedThreadStart start) |
| Creates a new tracked thread with the specified parameterized thread start delegate. More...
|
|
| TrackedThread (ThreadStart start) |
| Creates a new tracked thread with the specified thread start delegate. More...
|
|
| TrackedThread (ParameterizedThreadStart start, int maxStackSize) |
| Creates a new tracked thread with the specified parameterized thread start delegate and the specified maximal stack size. More...
|
|
| TrackedThread (ThreadStart start, int maxStackSize) |
| Creates a new tracked thread with the specified thread start delegate and the specified maximal stack size. More...
|
|
|
void | StartThreadParameterized (object obj) |
| The parameterized start method of the current tracked thread. Calls the delegate that has been passed at creation. More...
|
|
void | StartThread () |
| The parameterized start method of the current tracked thread. Calls the delegate that has been passed at creation. More...
|
|
|
readonly Thread | _thread |
|
readonly ParameterizedThreadStart | _startParameterized |
| Parameterized start delegate, executed on the thread when it starts. More...
|
|
readonly ThreadStart | _start |
| Start delegate (nonparameterized), executed on the thread when it starts. More...
|
|
Tracked thread object that wraps a single created thread and enables that all active wrapped threads are are tracked (i.e. a list of all active tracked threads can be obtained at any time).
Starting and manipulatin of the wrapped thread is done through the TrackedThread.Thread property.
The TrackedThread.IsParameterizedStart property can be used if the wrapped thread was created with the parameterized thread start delegate.
The static TrackedThread.Threads property returns an array of all TrackedThread objects that have ever been created and wrap active threads (threads that complete are removed from the list).
$A Igor xx;
IG.Lib.TrackedThread.TrackedThread |
( |
ParameterizedThreadStart |
start | ) |
|
|
inline |
Creates a new tracked thread with the specified parameterized thread start delegate.
- Parameters
-
start | The ParameterizedThreadStart delegate that is called on thread start. |
IG.Lib.TrackedThread.TrackedThread |
( |
ThreadStart |
start | ) |
|
|
inline |
Creates a new tracked thread with the specified thread start delegate.
- Parameters
-
start | The ThreadStart delegate that is called on thread start. |
IG.Lib.TrackedThread.TrackedThread |
( |
ParameterizedThreadStart |
start, |
|
|
int |
maxStackSize |
|
) |
| |
|
inline |
Creates a new tracked thread with the specified parameterized thread start delegate and the specified maximal stack size.
- Parameters
-
start | The ParameterizedThreadStart delegate that is called on thread start. |
maxStackSize | Maximal stack size of the thread. |
IG.Lib.TrackedThread.TrackedThread |
( |
ThreadStart |
start, |
|
|
int |
maxStackSize |
|
) |
| |
|
inline |
Creates a new tracked thread with the specified thread start delegate and the specified maximal stack size.
- Parameters
-
start | The ThreadStart delegate that is called on thread start. |
maxStackSize | Maximal stack size of the thread. |
void IG.Lib.TrackedThread.StartThreadParameterized |
( |
object |
obj | ) |
|
|
inlineprotected |
The parameterized start method of the current tracked thread. Calls the delegate that has been passed at creation.
- Parameters
-
obj | Object that is passed as argument to the delegate that is called on thread start. |
void IG.Lib.TrackedThread.StartThread |
( |
| ) |
|
|
inlineprotected |
The parameterized start method of the current tracked thread. Calls the delegate that has been passed at creation.
static void IG.Lib.TrackedThread.Test |
( |
| ) |
|
|
inlinestatic |
static void IG.Lib.TrackedThread.DoNothingForFiveSeconds |
( |
| ) |
|
|
inlinestaticprivate |
static void IG.Lib.TrackedThread.DoNothingForTenSeconds |
( |
| ) |
|
|
inlinestaticprivate |
static void IG.Lib.TrackedThread.DoNothingForSomeTime |
( |
object |
seconds | ) |
|
|
inlinestaticprivate |
readonly Thread IG.Lib.TrackedThread._thread |
|
protected |
readonly ParameterizedThreadStart IG.Lib.TrackedThread._startParameterized |
|
protected |
Parameterized start delegate, executed on the thread when it starts.
readonly ThreadStart IG.Lib.TrackedThread._start |
|
protected |
Start delegate (nonparameterized), executed on the thread when it starts.
readonly object IG.Lib.TrackedThread._lockThreadList = new object() |
|
staticprotected |
Object for locking the list of active traced threads.
The list of active traced threads.
Thread IG.Lib.TrackedThread.Thread |
|
get |
bool IG.Lib.TrackedThread.IsParameterizedStart |
|
get |
Gets the flag indicating whether the current traced thread uses a parameterized thread start.
Returns the array of all active tracked threads of type TrackedThread.
Use the TrackedThread.Thread property on the elements of the returned array in order to manipulate individual tracked threads.
int IG.Lib.TrackedThread.Count |
|
staticget |
The documentation for this class was generated from the following file: