C# Class SupportClass.ThreadClass, csharp-ldap

Support class used to handle threads
Inheritance: IThreadRunnable
Exibir arquivo Open project: EventStore/csharp-ldap Class Usage Examples

Public Methods

Method Description
Abort ( ) : void

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 ( System stateInfo ) : void

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 ( ) : ThreadClass,

Gets the currently running thread

Interrupt ( ) : void

Interrupts a thread that is in the WaitSleepJoin thread state

Join ( ) : void

Blocks the calling thread until a thread terminates

Join ( long MiliSeconds ) : void

Blocks the calling thread until a thread terminates or the specified time elapses

Join ( long MiliSeconds, int NanoSeconds ) : void

Blocks the calling thread until a thread terminates or the specified time elapses

Resume ( ) : void

Resumes a thread that has been suspended

Run ( ) : void

This method has no functionality unless the method is overridden

Start ( ) : void

Causes the operating system to change the state of the current thread instance to ThreadState.Running

Suspend ( ) : void

Suspends the thread, if the thread is already suspended it has no effect

ThreadClass ( ) : System

Initializes a new instance of the ThreadClass class

ThreadClass ( System Start ) : System

Initializes a new instance of the Thread class.

ThreadClass ( System Start, string Name ) : System

Initializes a new instance of the Thread class.

ThreadClass ( string Name ) : System

Initializes a new instance of the Thread class.

ToString ( ) : System.String

Obtain a String that represents the current Object

Method Details

Abort() public method

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
public Abort ( ) : void
return void

Abort() public method

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.
public Abort ( System stateInfo ) : void
stateInfo System An object that contains application-specific information, such as state, which can be used by the thread being aborted
return void

Current() public static method

Gets the currently running thread
public static Current ( ) : ThreadClass,
return ThreadClass,

Interrupt() public method

Interrupts a thread that is in the WaitSleepJoin thread state
public Interrupt ( ) : void
return void

Join() public method

Blocks the calling thread until a thread terminates
public Join ( ) : void
return void

Join() public method

Blocks the calling thread until a thread terminates or the specified time elapses
public Join ( long MiliSeconds ) : void
MiliSeconds long Time of wait in milliseconds
return void

Join() public method

Blocks the calling thread until a thread terminates or the specified time elapses
public Join ( long MiliSeconds, int NanoSeconds ) : void
MiliSeconds long Time of wait in milliseconds
NanoSeconds int Time of wait in nanoseconds
return void

Resume() public method

Resumes a thread that has been suspended
public Resume ( ) : void
return void

Run() public method

This method has no functionality unless the method is overridden
public Run ( ) : void
return void

Start() public method

Causes the operating system to change the state of the current thread instance to ThreadState.Running
public Start ( ) : void
return void

Suspend() public method

Suspends the thread, if the thread is already suspended it has no effect
public Suspend ( ) : void
return void

ThreadClass() public method

Initializes a new instance of the ThreadClass class
public ThreadClass ( ) : System
return System

ThreadClass() public method

Initializes a new instance of the Thread class.
public ThreadClass ( System Start ) : System
Start System A ThreadStart delegate that references the methods to be invoked when this thread begins executing
return System

ThreadClass() public method

Initializes a new instance of the Thread class.
public ThreadClass ( System Start, string Name ) : System
Start System A ThreadStart delegate that references the methods to be invoked when this thread begins executing
Name string The name of the thread
return System

ThreadClass() public method

Initializes a new instance of the Thread class.
public ThreadClass ( string Name ) : System
Name string The name of the thread
return System

ToString() public method

Obtain a String that represents the current Object
public ToString ( ) : System.String
return System.String