Thread Methods

Thread Methods

 

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodAbort()

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.

System_CAPS_pubmethodAbort(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.

System_CAPS_pubmethodSystem_CAPS_staticAllocateDataSlot()

Allocates an unnamed data slot on all the threads. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.

System_CAPS_pubmethodSystem_CAPS_staticAllocateNamedDataSlot(String)

Allocates a named data slot on all threads. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.

System_CAPS_pubmethodSystem_CAPS_staticBeginCriticalRegion()

Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception might jeopardize other tasks in the application domain.

System_CAPS_pubmethodSystem_CAPS_staticBeginThreadAffinity()

Notifies a host that managed code is about to execute instructions that depend on the identity of the current physical operating system thread.

System_CAPS_pubmethodDisableComObjectEagerCleanup()

Turns off automatic cleanup of runtime callable wrappers (RCW) for the current thread.

System_CAPS_pubmethodSystem_CAPS_staticEndCriticalRegion()

Notifies a host that execution is about to enter a region of code in which the effects of a thread abort or unhandled exception are limited to the current task.

System_CAPS_pubmethodSystem_CAPS_staticEndThreadAffinity()

Notifies a host that managed code has finished executing instructions that depend on the identity of the current physical operating system thread.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the Thread object. (Overrides CriticalFinalizerObject.Finalize().)

System_CAPS_pubmethodSystem_CAPS_staticFreeNamedDataSlot(String)

Eliminates the association between a name and a slot, for all threads in the process. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.

System_CAPS_pubmethodGetApartmentState()

Returns an ApartmentState value indicating the apartment state.

System_CAPS_pubmethodGetCompressedStack()

Obsolete.Returns a CompressedStack object that can be used to capture the stack for the current thread.

System_CAPS_pubmethodSystem_CAPS_staticGetData(LocalDataStoreSlot)

Retrieves the value from the specified slot on the current thread, within the current thread's current domain. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.

System_CAPS_pubmethodSystem_CAPS_staticGetDomain()

Returns the current domain in which the current thread is running.

System_CAPS_pubmethodSystem_CAPS_staticGetDomainID()

Returns a unique application domain identifier.

System_CAPS_pubmethodGetHashCode()

Returns a hash code for the current thread.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodSystem_CAPS_staticGetNamedDataSlot(String)

Looks up a named data slot. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInterrupt()

Interrupts a thread that is in the WaitSleepJoin thread state.

System_CAPS_pubmethodJoin()

Blocks the calling thread until the thread represented by this instance terminates, while continuing to perform standard COM and SendMessage pumping.

System_CAPS_pubmethodJoin(Int32)

Blocks the calling thread until the thread represented by this instance terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.

System_CAPS_pubmethodJoin(TimeSpan)

Blocks the calling thread until the thread represented by this instance terminates or the specified time elapses, while continuing to perform standard COM and SendMessage pumping.

System_CAPS_pubmethodSystem_CAPS_staticMemoryBarrier()

Synchronizes memory access as follows: The processor executing the current thread cannot reorder instructions in such a way that memory accesses prior to the call to MemoryBarrier execute after memory accesses that follow the call to MemoryBarrier.

System_CAPS_pubmethodSystem_CAPS_staticResetAbort()

Cancels an Abort requested for the current thread.

System_CAPS_pubmethodResume()

Obsolete.Resumes a thread that has been suspended.

System_CAPS_pubmethodSetApartmentState(ApartmentState)

Sets the apartment state of a thread before it is started.

System_CAPS_pubmethodSetCompressedStack(CompressedStack)

Obsolete.Applies a captured CompressedStack to the current thread.

System_CAPS_pubmethodSystem_CAPS_staticSetData(LocalDataStoreSlot, Object)

Sets the data in the specified slot on the currently running thread, for that thread's current domain. For better performance, use fields marked with the ThreadStaticAttribute attribute instead.

System_CAPS_pubmethodSystem_CAPS_staticSleep(Int32)

Suspends the current thread for the specified number of milliseconds.

System_CAPS_pubmethodSystem_CAPS_staticSleep(TimeSpan)

Suspends the current thread for the specified amount of time.

System_CAPS_pubmethodSystem_CAPS_staticSpinWait(Int32)

Causes a thread to wait the number of times defined by the iterations parameter.

System_CAPS_pubmethodStart()

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

System_CAPS_pubmethodStart(Object)

Causes the operating system to change the state of the current instance to ThreadState.Running, and optionally supplies an object containing data to be used by the method the thread executes.

System_CAPS_pubmethodSuspend()

Obsolete.Either suspends the thread, or if the thread is already suspended, has no effect.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTrySetApartmentState(ApartmentState)

Sets the apartment state of a thread before it is started.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(Byte)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(Double)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(Int16)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(Int32)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(Int64)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(IntPtr)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(Object)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(SByte)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(Single)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(UInt16)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(UInt32)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(UInt64)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileRead(UIntPtr)

Reads the value of a field. The value is the latest written by any processor in a computer, regardless of the number of processors or the state of processor cache.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(Byte, Byte)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(Double, Double)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(Int16, Int16)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(Int32, Int32)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(Int64, Int64)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(IntPtr, IntPtr)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(Object, Object)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(SByte, SByte)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(Single, Single)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(UInt16, UInt16)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(UInt32, UInt32)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(UInt64, UInt64)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticVolatileWrite(UIntPtr, UIntPtr)

Writes a value to a field immediately, so that the value is visible to all processors in the computer.

System_CAPS_pubmethodSystem_CAPS_staticYield()

Causes the calling thread to yield execution to another thread that is ready to run on the current processor. The operating system selects the thread to yield to.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethod_Thread.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

Maps a set of names to a corresponding set of dispatch identifiers.

System_CAPS_pubinterfaceSystem_CAPS_privmethod_Thread.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System_CAPS_pubinterfaceSystem_CAPS_privmethod_Thread.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

System_CAPS_pubinterfaceSystem_CAPS_privmethod_Thread.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Provides access to properties and methods exposed by an object.

Return to top
Show:
© 2016 Microsoft