Class ThreadClass
Support class used to handle threads
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public class ThreadClass : object, IThreadRunnable
Constructors
Name | Description |
---|---|
ThreadClass() | Initializes a new instance of the ThreadClass class |
ThreadClass(String) | Initializes a new instance of the Thread class. |
ThreadClass(ThreadStart) | Initializes a new instance of the Thread class. |
ThreadClass(ThreadStart, String) | Initializes a new instance of the Thread class. |
Properties
Name | Description |
---|---|
Instance | Gets the current thread instance |
IsAlive | Gets a value indicating the execution status of the current thread |
IsBackground | Gets or sets a value indicating whether or not a thread is a background thread. |
Name | Gets or sets the name of the thread |
Priority | Gets or sets a value indicating the scheduling priority of a thread |
State |
Methods
Name | Description |
---|---|
Abort() | Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread |
Abort(Object) | Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread. |
Current() | Gets the currently running thread |
CurrentThread() | |
Equals(Object) | |
GetHashCode() | |
Interrupt() | Interrupts a thread that is in the WaitSleepJoin thread state |
Join() | Blocks the calling thread until a thread terminates |
Join(Int64) | Blocks the calling thread until a thread terminates or the specified time elapses |
Join(Int64, Int32) | Blocks the calling thread until a thread terminates or the specified time elapses |
Resume() | Resumes a thread that has been suspended |
Run() | This method has no functionality unless the method is overridden |
SetDaemon(Boolean) | |
Sleep(Int64) | |
Start() | Causes the operating system to change the state of the current thread instance to ThreadState.Running |
Suspend() | Suspends the thread, if the thread is already suspended it has no effect |
ToString() | Obtain a String that represents the current object |
Operators
Name | Description |
---|---|
Equality(ThreadClass, Object) | |
Inequality(ThreadClass, Object) |