Export (0) Print
Expand All

Thread Methods

The Thread type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Abort Overloaded. 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 method Static member Supported by the .NET Compact Framework Supported by the XNA Framework AllocateDataSlot Allocates an unnamed data slot on all the threads. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework AllocateNamedDataSlot Allocates a named data slot on all threads. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.
Public method Static member BeginCriticalRegion 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.
Public method Static member BeginThreadAffinity Notifies a host that managed code is about to execute instructions that depend on the identity of the current physical operating system thread.
Public method Static member EndCriticalRegion 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.
Public method Static member EndThreadAffinity Notifies a host that managed code has finished executing instructions that depend on the identity of the current physical operating system thread.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Releases all the resources used by the CriticalFinalizerObject class. (Inherited from CriticalFinalizerObject.)

In .NET Compact Framework 3.5, this member is inherited from Object.Finalize().


In XNA Framework 3.0, this member is inherited from Object.Finalize().
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework FreeNamedDataSlot 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.
Public method GetApartmentState Returns an ApartmentState value indicating the apartment state.
Public method GetCompressedStack Obsolete. Returns a CompressedStack object that can be used to capture the stack for the current thread.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetData 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.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetDomain Returns the current domain in which the current thread is running.
Public method Static member GetDomainID Returns a unique application domain identifier.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Returns a hash code for the current thread. (Overrides Object.GetHashCode().)

In .NET Compact Framework 3.5, this member is inherited from Object.GetHashCode().


In XNA Framework 3.0, this member is inherited from Object.GetHashCode().
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetNamedDataSlot Looks up a named data slot. For better performance, use fields that are marked with the ThreadStaticAttribute attribute instead.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Interrupt Interrupts a thread that is in the WaitSleepJoin thread state.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Join Overloaded. Blocks the calling thread until a thread terminates.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework MemoryBarrier 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.
Public method Static member ResetAbort Cancels an Abort requested for the current thread.
Public method Resume Obsolete. Resumes a thread that has been suspended.
Public method SetApartmentState Sets the apartment state of a thread before it is started.
Public method SetCompressedStack Obsolete. Applies a captured CompressedStack to the current thread.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework SetData 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.
Public method Supported by the XNA Framework SetProcessorAffinity In the .NET Compact Framework for Xbox 360, sets the processor affinity for a managed thread. Processor affinity determines the processors on which a thread runs.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Sleep Overloaded. Blocks the current thread for the specified number of milliseconds.
Public method Static member SpinWait Causes a thread to wait the number of times defined by the iterations parameter.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Start Overloaded. Causes a thread to be scheduled for execution.
Public method Suspend Obsolete. Either suspends the thread, or if the thread is already suspended, has no effect.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TrySetApartmentState Sets the apartment state of a thread before it is started.
Public method Static member VolatileRead Overloaded. 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.
Public method Static member VolatileWrite Overloaded. Writes a value to a field immediately, so that the value is visible to all processors in the computer.
Top

  NameDescription
Explicit interface implemetation Private method _Thread.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implemetation Private method _Thread.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implemetation Private method _Thread.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implemetation Private method _Thread.Invoke Provides access to properties and methods exposed by an object.
Top

Community Additions

ADD
Show:
© 2014 Microsoft