W3cubDocs

/Haxe C#

Thread

package cs.system.threading

extends CriticalFinalizerObject

implements _Thread

@:final@:libType@:csNative@:native("System.Threading.Thread") Available on cs

Constructor

@:final @:overload new (start:ThreadStart)

@:final @:overload new (start:ParameterizedThreadStart, maxStackSize:Int)

@:final @:overload new (start:ParameterizedThreadStart)

@:final @:overload new (start:ThreadStart, maxStackSize:Int)

Variables

ApartmentState:ApartmentState

CurrentCulture:CultureInfo

CurrentUICulture:CultureInfo

read only ExecutionContext:ExecutionContext

read only IsAlive:Bool

IsBackground:Bool

read only IsThreadPoolThread:Bool

read only ManagedThreadId:Int

Name:String

Priority:ThreadPriority

read only ThreadState:ThreadState

Methods

@:final @:overload Abort ():Void

@:final @:overload Abort (stateInfo:Dynamic):Void

@:final @:overload GetApartmentState ():ApartmentState

@:final @:overload GetCompressedStack ():CompressedStack

@:final @:overload Interrupt ():Void

@:final @:overload Join ():Void

@:final @:overload Join (timeout:TimeSpan):Bool

@:final @:overload Join (millisecondsTimeout:Int):Bool

@:final @:overload Resume ():Void

@:final @:overload SetApartmentState (state:ApartmentState):Void

@:final @:overload SetCompressedStack (stack:CompressedStack):Void

@:final @:overload Start ():Void

@:final @:overload Start (parameter:Dynamic):Void

@:final @:overload Suspend ():Void

@:final @:overload TrySetApartmentState (state:ApartmentState):Bool

Static variables

static read only CurrentContext:Context

static CurrentPrincipal:IPrincipal

static read only CurrentThread:Thread

Static methods

@:final @:overload static AllocateDataSlot ():LocalDataStoreSlot

@:final @:overload static AllocateNamedDataSlot (name:String):LocalDataStoreSlot

@:final @:overload static BeginCriticalRegion ():Void

@:final @:overload static BeginThreadAffinity ():Void

@:final @:overload static EndCriticalRegion ():Void

@:final @:overload static EndThreadAffinity ():Void

@:final @:overload static FreeNamedDataSlot (name:String):Void

@:final @:overload static GetData (slot:LocalDataStoreSlot):Dynamic

@:final @:overload static GetDomain ():AppDomain

@:final @:overload static GetDomainID ():Int

@:final @:overload static GetNamedDataSlot (name:String):LocalDataStoreSlot

@:final @:overload static MemoryBarrier ():Void

@:final @:overload static ResetAbort ():Void

@:final @:overload static SetData (slot:LocalDataStoreSlot, data:Dynamic):Void

@:final @:overload static Sleep (millisecondsTimeout:Int):Void

@:final @:overload static Sleep (timeout:TimeSpan):Void

@:final @:overload static SpinWait (iterations:Int):Void

@:final @:overload static VolatileRead (address:Ref<UInt8>):UInt8

@:final @:overload static VolatileRead (address:Ref<UIntPtr>):UIntPtr

@:final @:overload static VolatileRead (address:Ref<UInt64>):UInt64

@:final @:overload static VolatileRead (address:Ref<UInt>):UInt

@:final @:overload static VolatileRead (address:Ref<UInt16>):UInt16

@:final @:overload static VolatileRead (address:Ref<Single>):Single

@:final @:overload static VolatileRead (address:Ref<Int8>):Int8

@:final @:overload static VolatileRead (address:Ref<Dynamic>):Dynamic

@:final @:overload static VolatileRead (address:Ref<IntPtr>):IntPtr

@:final @:overload static VolatileRead (address:Ref<Int64>):Int64

@:final @:overload static VolatileRead (address:Ref<Int>):Int

@:final @:overload static VolatileRead (address:Ref<Int16>):Int16

@:final @:overload static VolatileRead (address:Ref<Float>):Float

@:final @:overload static VolatileWrite (address:Ref<UInt8>, value:UInt8):Void

@:final @:overload static VolatileWrite (address:Ref<UIntPtr>, value:UIntPtr):Void

@:final @:overload static VolatileWrite (address:Ref<UInt64>, value:UInt64):Void

@:final @:overload static VolatileWrite (address:Ref<UInt>, value:UInt):Void

@:final @:overload static VolatileWrite (address:Ref<UInt16>, value:UInt16):Void

@:final @:overload static VolatileWrite (address:Ref<Single>, value:Single):Void

@:final @:overload static VolatileWrite (address:Ref<Int8>, value:Int8):Void

@:final @:overload static VolatileWrite (address:Ref<Dynamic>, value:Dynamic):Void

@:final @:overload static VolatileWrite (address:Ref<IntPtr>, value:IntPtr):Void

@:final @:overload static VolatileWrite (address:Ref<Int64>, value:Int64):Void

@:final @:overload static VolatileWrite (address:Ref<Int>, value:Int):Void

@:final @:overload static VolatileWrite (address:Ref<Int16>, value:Int16):Void

@:final @:overload static VolatileWrite (address:Ref<Float>, value:Float):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/threading/Thread.html