System.Threading
56 wrapped types. Load them with using { "System.Threading" }. Click a class to open it.
AbandonedMutexException class · extends SystemException
System.Threading.AbandonedMutexException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new AbandonedMutexException() |
new AbandonedMutexException(string message) |
new AbandonedMutexException(string message, Exception inner) |
new AbandonedMutexException(int location, WaitHandle handle) |
new AbandonedMutexException(string message, int location, WaitHandle handle) |
new AbandonedMutexException(string message, Exception inner, int location, WaitHandle handle) |
Ring: new AbandonedMutexException(args) uses one constructor; the others are chosen by the parameter names: new AbandonedMutexException().@New([ :param = value ]) or dnNew("AbandonedMutexException",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Mutex | Mutex | read | o.Mutex |
MutexIndex | int | read | o.MutexIndex |
Members of the base class are inherited.
AsyncFlowControl struct
System.Threading.AsyncFlowControl · assembly System.Private.CoreLib
Implements: IDisposable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
Equals | Equals(p1) | bool Equals(object obj)bool Equals(AsyncFlowControl obj) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
Undo | callMethod("Undo",[]) | void Undo() |
AsyncLocal class sealed
System.Threading.AsyncLocal`1 · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Value | T | read, write | o.Value o.Value = v |
AsyncLocalValueChangedArgs struct
System.Threading.AsyncLocalValueChangedArgs`1 · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
PreviousValue | T | read | o.PreviousValue |
CurrentValue | T | read | o.CurrentValue |
ThreadContextChanged | bool | read | o.ThreadContextChanged |
AutoResetEvent class sealed · extends EventWaitHandle
System.Threading.AutoResetEvent · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new AutoResetEvent(bool initialState) |
Ring: new AutoResetEvent(args) uses one constructor; the others are chosen by the parameter names: new AutoResetEvent().@New([ :param = value ]) or dnNew("AutoResetEvent",[ :param = value ]).
Members of the base class are inherited.
Barrier class
System.Threading.Barrier · assembly System.Threading
Implements: IDisposable
Constructors
new Barrier(int participantCount) |
new Barrier(int participantCount, Action<Barrier> postPhaseAction) |
Ring: new Barrier(args) uses one constructor; the others are chosen by the parameter names: new Barrier().@New([ :param = value ]) or dnNew("Barrier",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ParticipantsRemaining | int | read | o.ParticipantsRemaining |
ParticipantCount | int | read | o.ParticipantCount |
CurrentPhaseNumber | long | read | o.CurrentPhaseNumber |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AddParticipant | callMethod("AddParticipant",[]) | long AddParticipant() |
AddParticipants | callMethod("AddParticipants",[p1]) | long AddParticipants(int participantCount) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
RemoveParticipant | callMethod("RemoveParticipant",[]) | void RemoveParticipant() |
RemoveParticipants | callMethod("RemoveParticipants",[p1]) | void RemoveParticipants(int participantCount) |
SignalAndWait | SignalAndWait(NULL)SignalAndWait(value)SignalAndWait([ :cancellationToken = … ])SignalAndWait([ :timeout = … ])SignalAndWait([ :millisecondsTimeout = … ])SignalAndWait([ :timeout = …, :cancellationToken = … ]) | void SignalAndWait()void SignalAndWait(CancellationToken cancellationToken)bool SignalAndWait(TimeSpan timeout)bool SignalAndWait(TimeSpan timeout, CancellationToken cancellationToken)bool SignalAndWait(int millisecondsTimeout)bool SignalAndWait(int millisecondsTimeout, CancellationToken cancellationToken) |
BarrierPostPhaseException class · extends Exception
System.Threading.BarrierPostPhaseException · assembly System.Threading
Implements: ISerializable
Constructors
new BarrierPostPhaseException() |
new BarrierPostPhaseException(Exception innerException) |
new BarrierPostPhaseException(string message) |
new BarrierPostPhaseException(string message, Exception innerException) |
Ring: new BarrierPostPhaseException(args) uses one constructor; the others are chosen by the parameter names: new BarrierPostPhaseException().@New([ :param = value ]) or dnNew("BarrierPostPhaseException",[ :param = value ]).
Members of the base class are inherited.
CancellationToken struct
System.Threading.CancellationToken · assembly System.Private.CoreLib
Constructors
new CancellationToken(bool canceled) |
Ring: new CancellationToken(args) uses one constructor; the others are chosen by the parameter names: new CancellationToken().@New([ :param = value ]) or dnNew("CancellationToken",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsCancellationRequested | bool | read | o.IsCancellationRequested |
CanBeCanceled | bool | read | o.CanBeCanceled |
WaitHandle | WaitHandle | read | o.WaitHandle |
None | CancellationToken | read · static | o.None |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(CancellationToken other)bool Equals(object other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
Register | Register(value)Register([ :callback = … ])Register([ :callback = …, :useSynchronizationContext = … ])Register([ :callback = …, :state = … ])Register([ :callback = …, :state = …, :useSynchronizationContext = … ]) | CancellationTokenRegistration Register(Action callback)CancellationTokenRegistration Register(Action callback, bool useSynchronizationContext)CancellationTokenRegistration Register(Action<object> callback, object state)CancellationTokenRegistration Register(Action<object, CancellationToken> callback, object state)CancellationTokenRegistration Register(Action<object> callback, object state, bool useSynchronizationContext) |
ThrowIfCancellationRequested | callMethod("ThrowIfCancellationRequested",[]) | void ThrowIfCancellationRequested() |
UnsafeRegister | callMethod("UnsafeRegister",[p1,p2]) | CancellationTokenRegistration UnsafeRegister(Action<object> callback, object state)CancellationTokenRegistration UnsafeRegister(Action<object, CancellationToken> callback, object state) |
CancellationTokenRegistration struct
System.Threading.CancellationTokenRegistration · assembly System.Private.CoreLib
Implements: IDisposable, IAsyncDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Token | CancellationToken | read | o.Token |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
DisposeAsync | callMethod("DisposeAsync",[]) | ValueTask DisposeAsync() |
Equals | Equals(p1) | bool Equals(object obj)bool Equals(CancellationTokenRegistration other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
Unregister | callMethod("Unregister",[]) | bool Unregister() |
CancellationTokenSource class
System.Threading.CancellationTokenSource · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new CancellationTokenSource() |
new CancellationTokenSource(TimeSpan delay) |
new CancellationTokenSource(TimeSpan delay, TimeProvider timeProvider) |
new CancellationTokenSource(int millisecondsDelay) |
Ring: new CancellationTokenSource(args) uses one constructor; the others are chosen by the parameter names: new CancellationTokenSource().@New([ :param = value ]) or dnNew("CancellationTokenSource",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsCancellationRequested | bool | read | o.IsCancellationRequested |
Token | CancellationToken | read | o.Token |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Cancel | callMethod("Cancel",[])callMethod("Cancel",[p1]) | void Cancel()void Cancel(bool throwOnFirstException) |
CancelAfter | CancelAfter(p1) | void CancelAfter(TimeSpan delay)void CancelAfter(int millisecondsDelay) |
CancelAsync | callMethod("CancelAsync",[]) | Task CancelAsync() |
CreateLinkedTokenSource | CreateLinkedTokenSource(value)CreateLinkedTokenSource([ :token = … ])CreateLinkedTokenSource([ :tokens = … ])CreateLinkedTokenSource([ :token1 = …, :token2 = … ]) | static CancellationTokenSource CreateLinkedTokenSource(CancellationToken token1, CancellationToken token2)static CancellationTokenSource CreateLinkedTokenSource(CancellationToken token)static CancellationTokenSource CreateLinkedTokenSource(CancellationToken[] tokens)static CancellationTokenSource CreateLinkedTokenSource(ReadOnlySpan<CancellationToken> tokens) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
TryReset | callMethod("TryReset",[]) | bool TryReset() |
CompressedStack class sealed
System.Threading.CompressedStack · assembly System.Private.CoreLib
Implements: ISerializable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Capture | Capture() | static CompressedStack Capture() |
CreateCopy | callMethod("CreateCopy",[]) | CompressedStack CreateCopy() |
GetCompressedStack | GetCompressedStack() | static CompressedStack GetCompressedStack() |
GetObjectData | GetObjectData(p1,p2) | void GetObjectData(SerializationInfo info, StreamingContext context) |
Run | Run(p1,p2,p3) | static void Run(CompressedStack compressedStack, ContextCallback callback, object state) |
CountdownEvent class
System.Threading.CountdownEvent · assembly System.Threading
Implements: IDisposable
Constructors
new CountdownEvent(int initialCount) |
Ring: new CountdownEvent(args) uses one constructor; the others are chosen by the parameter names: new CountdownEvent().@New([ :param = value ]) or dnNew("CountdownEvent",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CurrentCount | int | read | o.CurrentCount |
InitialCount | int | read | o.InitialCount |
IsSet | bool | read | o.IsSet |
WaitHandle | WaitHandle | read | o.WaitHandle |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AddCount | callMethod("AddCount",[])callMethod("AddCount",[p1]) | void AddCount()void AddCount(int signalCount) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Reset | callMethod("Reset",[])callMethod("Reset",[p1]) | void Reset()void Reset(int count) |
Signal | callMethod("Signal",[])callMethod("Signal",[p1]) | bool Signal()bool Signal(int signalCount) |
TryAddCount | callMethod("TryAddCount",[])callMethod("TryAddCount",[p1]) | bool TryAddCount()bool TryAddCount(int signalCount) |
Wait | Wait(NULL)Wait(value)Wait([ :cancellationToken = … ])Wait([ :timeout = … ])Wait([ :millisecondsTimeout = … ])Wait([ :timeout = …, :cancellationToken = … ]) | void Wait()void Wait(CancellationToken cancellationToken)bool Wait(TimeSpan timeout)bool Wait(TimeSpan timeout, CancellationToken cancellationToken)bool Wait(int millisecondsTimeout)bool Wait(int millisecondsTimeout, CancellationToken cancellationToken) |
EventWaitHandle class · extends WaitHandle
System.Threading.EventWaitHandle · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new EventWaitHandle(bool initialState, EventResetMode mode) |
new EventWaitHandle(bool initialState, EventResetMode mode, string name) |
new EventWaitHandle(bool initialState, EventResetMode mode, string name, out bool createdNew) |
Ring: new EventWaitHandle(args) uses one constructor; the others are chosen by the parameter names: new EventWaitHandle().@New([ :param = value ]) or dnNew("EventWaitHandle",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
OpenExisting | OpenExisting(p1) | static EventWaitHandle OpenExisting(string name) |
Reset | callMethod("Reset",[]) | bool Reset() |
Set | callMethod("Set",[]) | bool Set() |
TryOpenExisting | TryOpenExisting(p1) | static bool TryOpenExisting(string name, out EventWaitHandle result) |
Members of the base class are inherited.
ExecutionContext class sealed
System.Threading.ExecutionContext · assembly System.Private.CoreLib
Implements: IDisposable, ISerializable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Capture | Capture() | static ExecutionContext Capture() |
CreateCopy | callMethod("CreateCopy",[]) | ExecutionContext CreateCopy() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetObjectData | GetObjectData(p1,p2) | void GetObjectData(SerializationInfo info, StreamingContext context) |
IsFlowSuppressed | callMethod("IsFlowSuppressed",[]) | static bool IsFlowSuppressed() |
Restore | Restore(p1) | static void Restore(ExecutionContext executionContext) |
RestoreFlow | callMethod("RestoreFlow",[]) | static void RestoreFlow() |
Run | Run(p1,p2,p3) | static void Run(ExecutionContext executionContext, ContextCallback callback, object state) |
SuppressFlow | SuppressFlow() | static AsyncFlowControl SuppressFlow() |
HostExecutionContext class
System.Threading.HostExecutionContext · assembly System.Threading
Implements: IDisposable
Constructors
new HostExecutionContext() |
new HostExecutionContext(object state) |
Ring: new HostExecutionContext(args) uses one constructor; the others are chosen by the parameter names: new HostExecutionContext().@New([ :param = value ]) or dnNew("HostExecutionContext",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateCopy | callMethod("CreateCopy",[]) | HostExecutionContext CreateCopy() |
Dispose | callMethod("Dispose",[])callMethod("Dispose",[p1]) | void Dispose()void Dispose(bool disposing) |
HostExecutionContextManager class
System.Threading.HostExecutionContextManager · assembly System.Threading
Constructors
new HostExecutionContextManager() |
Ring: new HostExecutionContextManager(args) uses one constructor; the others are chosen by the parameter names: new HostExecutionContextManager().@New([ :param = value ]) or dnNew("HostExecutionContextManager",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Capture | callMethod("Capture",[]) | HostExecutionContext Capture() |
Revert | Revert(p1) | void Revert(object previousState) |
SetHostExecutionContext | callMethod("SetHostExecutionContext",[p1]) | object SetHostExecutionContext(HostExecutionContext hostExecutionContext) |
Interlocked class static
System.Threading.Interlocked · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | Add(p1,p2) | static int Add(ref int location1, int value)static long Add(ref long location1, long value)static uint Add(ref uint location1, uint value)static ulong Add(ref ulong location1, ulong value) |
And | @And(p1,p2) | static int And(ref int location1, int value)static uint And(ref uint location1, uint value)static long And(ref long location1, long value)static ulong And(ref ulong location1, ulong value) |
CompareExchange | CompareExchange(p1,p2,p3) | static int CompareExchange(ref int location1, int value, int comparand)static long CompareExchange(ref long location1, long value, long comparand)static object CompareExchange(ref object location1, object value, object comparand)static sbyte CompareExchange(ref sbyte location1, sbyte value, sbyte comparand)static short CompareExchange(ref short location1, short value, short comparand)static byte CompareExchange(ref byte location1, byte value, byte comparand)static ushort CompareExchange(ref ushort location1, ushort value, ushort comparand)static uint CompareExchange(ref uint location1, uint value, uint comparand)static ulong CompareExchange(ref ulong location1, ulong value, ulong comparand)static float CompareExchange(ref float location1, float value, float comparand)static double CompareExchange(ref double location1, double value, double comparand)static IntPtr CompareExchange(ref IntPtr location1, IntPtr value, IntPtr comparand)static UIntPtr CompareExchange(ref UIntPtr location1, UIntPtr value, UIntPtr comparand)static T CompareExchange<T>(ref T location1, T value, T comparand) |
Decrement | Decrement(p1) | static int Decrement(ref int location)static long Decrement(ref long location)static uint Decrement(ref uint location)static ulong Decrement(ref ulong location) |
Exchange | Exchange(p1,p2) | static int Exchange(ref int location1, int value)static long Exchange(ref long location1, long value)static object Exchange(ref object location1, object value)static sbyte Exchange(ref sbyte location1, sbyte value)static short Exchange(ref short location1, short value)static byte Exchange(ref byte location1, byte value)static ushort Exchange(ref ushort location1, ushort value)static uint Exchange(ref uint location1, uint value)static ulong Exchange(ref ulong location1, ulong value)static float Exchange(ref float location1, float value)static double Exchange(ref double location1, double value)static IntPtr Exchange(ref IntPtr location1, IntPtr value)static UIntPtr Exchange(ref UIntPtr location1, UIntPtr value)static T Exchange<T>(ref T location1, T value) |
Increment | Increment(p1) | static int Increment(ref int location)static long Increment(ref long location)static uint Increment(ref uint location)static ulong Increment(ref ulong location) |
MemoryBarrier | callMethod("MemoryBarrier",[]) | static void MemoryBarrier() |
MemoryBarrierProcessWide | callMethod("MemoryBarrierProcessWide",[]) | static void MemoryBarrierProcessWide() |
Or | @Or(p1,p2) | static int Or(ref int location1, int value)static uint Or(ref uint location1, uint value)static long Or(ref long location1, long value)static ulong Or(ref ulong location1, ulong value) |
Read | callMethod("Read",[p1]) | static long Read(ref long location)static ulong Read(ref ulong location) |
IThreadPoolWorkItem interface
System.Threading.IThreadPoolWorkItem · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Execute | callMethod("Execute",[]) | void Execute() |
ITimer interface
System.Threading.ITimer · assembly System.Private.CoreLib
Implements: IDisposable, IAsyncDisposable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Change | Change(p1,p2) | bool Change(TimeSpan dueTime, TimeSpan period) |
LazyInitializer class static
System.Threading.LazyInitializer · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
EnsureInitialized | EnsureInitialized(value)EnsureInitialized([ :target = … ])EnsureInitialized([ :target = …, :valueFactory = … ])EnsureInitialized([ :target = …, :initialized = …, :syncLock = … ])EnsureInitialized([ :target = …, :syncLock = …, :valueFactory = … ]) | static T EnsureInitialized<T>(ref T target)static T EnsureInitialized<T>(ref T target, Func<T> valueFactory)static T EnsureInitialized<T>(ref T target, ref bool initialized, ref object syncLock)static T EnsureInitialized<T>(ref T target, ref bool initialized, ref object syncLock, Func<T> valueFactory)static T EnsureInitialized<T>(ref T target, ref object syncLock, Func<T> valueFactory) |
Lock class sealed
System.Threading.Lock · assembly System.Private.CoreLib
Constructors
new Lock() |
Ring: new Lock(args) uses one constructor; the others are chosen by the parameter names: new Lock().@New([ :param = value ]) or dnNew("Lock",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsHeldByCurrentThread | bool | read | o.IsHeldByCurrentThread |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Enter | callMethod("Enter",[]) | void Enter() |
EnterScope | callMethod("EnterScope",[]) | Lock.Scope EnterScope() |
Exit | callMethod("Exit",[]) | void Exit() |
TryEnter | callMethod("TryEnter",[])callMethod("TryEnter",[p1]) | bool TryEnter()bool TryEnter(int millisecondsTimeout)bool TryEnter(TimeSpan timeout) |
LockCookie struct
System.Threading.LockCookie · assembly System.Threading
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(LockCookie obj) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
LockRecursionException class · extends Exception
System.Threading.LockRecursionException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new LockRecursionException() |
new LockRecursionException(string message) |
new LockRecursionException(string message, Exception innerException) |
Ring: new LockRecursionException(args) uses one constructor; the others are chosen by the parameter names: new LockRecursionException().@New([ :param = value ]) or dnNew("LockRecursionException",[ :param = value ]).
Members of the base class are inherited.
ManualResetEvent class sealed · extends EventWaitHandle
System.Threading.ManualResetEvent · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new ManualResetEvent(bool initialState) |
Ring: new ManualResetEvent(args) uses one constructor; the others are chosen by the parameter names: new ManualResetEvent().@New([ :param = value ]) or dnNew("ManualResetEvent",[ :param = value ]).
Members of the base class are inherited.
ManualResetEventSlim class
System.Threading.ManualResetEventSlim · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new ManualResetEventSlim() |
new ManualResetEventSlim(bool initialState) |
new ManualResetEventSlim(bool initialState, int spinCount) |
Ring: new ManualResetEventSlim(args) uses one constructor; the others are chosen by the parameter names: new ManualResetEventSlim().@New([ :param = value ]) or dnNew("ManualResetEventSlim",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
WaitHandle | WaitHandle | read | o.WaitHandle |
IsSet | bool | read | o.IsSet |
SpinCount | int | read | o.SpinCount |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
Reset | callMethod("Reset",[]) | void Reset() |
Set | callMethod("Set",[]) | void Set() |
Wait | Wait(NULL)Wait(value)Wait([ :cancellationToken = … ])Wait([ :timeout = … ])Wait([ :millisecondsTimeout = … ])Wait([ :timeout = …, :cancellationToken = … ]) | void Wait()void Wait(CancellationToken cancellationToken)bool Wait(TimeSpan timeout)bool Wait(TimeSpan timeout, CancellationToken cancellationToken)bool Wait(int millisecondsTimeout)bool Wait(int millisecondsTimeout, CancellationToken cancellationToken) |
Monitor class static
System.Threading.Monitor · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LockContentionCount | long | read · static | o.LockContentionCount |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Enter | Enter(value)Enter([ :obj = … ])Enter([ :obj = …, :lockTaken = … ]) | static void Enter(object obj)static void Enter(object obj, ref bool lockTaken) |
Exit | @Exit(p1) | static void Exit(object obj) |
IsEntered | IsEntered(p1) | static bool IsEntered(object obj) |
Pulse | Pulse(p1) | static void Pulse(object obj) |
PulseAll | PulseAll(p1) | static void PulseAll(object obj) |
TryEnter | TryEnter(value)TryEnter([ :obj = … ])TryEnter([ :obj = …, :lockTaken = … ])TryEnter([ :obj = …, :millisecondsTimeout = … ])TryEnter([ :obj = …, :timeout = … ]) | static bool TryEnter(object obj)static void TryEnter(object obj, ref bool lockTaken)static bool TryEnter(object obj, int millisecondsTimeout)static void TryEnter(object obj, int millisecondsTimeout, ref bool lockTaken)static bool TryEnter(object obj, TimeSpan timeout)static void TryEnter(object obj, TimeSpan timeout, ref bool lockTaken) |
Wait | Wait(value)Wait([ :obj = … ])Wait([ :obj = …, :millisecondsTimeout = … ])Wait([ :obj = …, :timeout = … ])Wait([ :obj = …, :millisecondsTimeout = …, :exitContext = … ]) | static bool Wait(object obj, int millisecondsTimeout)static bool Wait(object obj, TimeSpan timeout)static bool Wait(object obj)static bool Wait(object obj, int millisecondsTimeout, bool exitContext)static bool Wait(object obj, TimeSpan timeout, bool exitContext) |
Mutex class sealed · extends WaitHandle
System.Threading.Mutex · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new Mutex(bool initiallyOwned, string name, out bool createdNew) |
new Mutex(bool initiallyOwned, string name) |
new Mutex(bool initiallyOwned) |
new Mutex() |
Ring: new Mutex(args) uses one constructor; the others are chosen by the parameter names: new Mutex().@New([ :param = value ]) or dnNew("Mutex",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
OpenExisting | OpenExisting(p1) | static Mutex OpenExisting(string name) |
ReleaseMutex | callMethod("ReleaseMutex",[]) | void ReleaseMutex() |
TryOpenExisting | TryOpenExisting(p1) | static bool TryOpenExisting(string name, out Mutex result) |
Members of the base class are inherited.
NativeOverlapped struct
System.Threading.NativeOverlapped · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
InternalLow | IntPtr | read, write | o.InternalLow o.InternalLow = v |
InternalHigh | IntPtr | read, write | o.InternalHigh o.InternalHigh = v |
OffsetLow | int | read, write | o.OffsetLow o.OffsetLow = v |
OffsetHigh | int | read, write | o.OffsetHigh o.OffsetHigh = v |
EventHandle | IntPtr | read, write | o.EventHandle o.EventHandle = v |
Overlapped class
System.Threading.Overlapped · assembly System.Private.CoreLib
Constructors
new Overlapped() |
new Overlapped(int offsetLo, int offsetHi, IntPtr hEvent, IAsyncResult ar) |
new Overlapped(int offsetLo, int offsetHi, int hEvent, IAsyncResult ar) |
Ring: new Overlapped(args) uses one constructor; the others are chosen by the parameter names: new Overlapped().@New([ :param = value ]) or dnNew("Overlapped",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
AsyncResult | IAsyncResult | read, write | o.AsyncResult o.AsyncResult = v |
OffsetLow | int | read, write | o.OffsetLow o.OffsetLow = v |
OffsetHigh | int | read, write | o.OffsetHigh o.OffsetHigh = v |
EventHandle | int | read, write | o.EventHandle o.EventHandle = v |
EventHandleIntPtr | IntPtr | read, write | o.EventHandleIntPtr o.EventHandleIntPtr = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Free | Free(p1) | static void Free(NativeOverlapped* nativeOverlappedPtr) |
Pack | callMethod("Pack",[p1])callMethod("Pack",[p1,p2]) | NativeOverlapped* Pack(IOCompletionCallback iocb)NativeOverlapped* Pack(IOCompletionCallback iocb, object userData) |
Unpack | Unpack(p1) | static Overlapped Unpack(NativeOverlapped* nativeOverlappedPtr) |
UnsafePack | callMethod("UnsafePack",[p1])callMethod("UnsafePack",[p1,p2]) | NativeOverlapped* UnsafePack(IOCompletionCallback iocb)NativeOverlapped* UnsafePack(IOCompletionCallback iocb, object userData) |
PeriodicTimer class sealed
System.Threading.PeriodicTimer · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new PeriodicTimer(TimeSpan period) |
new PeriodicTimer(TimeSpan period, TimeProvider timeProvider) |
Ring: new PeriodicTimer(args) uses one constructor; the others are chosen by the parameter names: new PeriodicTimer().@New([ :param = value ]) or dnNew("PeriodicTimer",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Period | TimeSpan | read, write | o.Period o.Period = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
WaitForNextTickAsync | WaitForNextTickAsync(value)WaitForNextTickAsync([ :cancellationToken = … ]) | ValueTask<bool> WaitForNextTickAsync(CancellationToken cancellationToken = …) |
PreAllocatedOverlapped class sealed
System.Threading.PreAllocatedOverlapped · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new PreAllocatedOverlapped(IOCompletionCallback callback, object state, object pinData) |
Ring: new PreAllocatedOverlapped(args) uses one constructor; the others are chosen by the parameter names: new PreAllocatedOverlapped().@New([ :param = value ]) or dnNew("PreAllocatedOverlapped",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
UnsafeCreate | UnsafeCreate(p1,p2,p3) | static PreAllocatedOverlapped UnsafeCreate(IOCompletionCallback callback, object state, object pinData) |
ReaderWriterLock class sealed · extends CriticalFinalizerObject
System.Threading.ReaderWriterLock · assembly System.Threading
Constructors
new ReaderWriterLock() |
Ring: new ReaderWriterLock(args) uses one constructor; the others are chosen by the parameter names: new ReaderWriterLock().@New([ :param = value ]) or dnNew("ReaderWriterLock",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsReaderLockHeld | bool | read | o.IsReaderLockHeld |
IsWriterLockHeld | bool | read | o.IsWriterLockHeld |
WriterSeqNum | int | read | o.WriterSeqNum |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AcquireReaderLock | callMethod("AcquireReaderLock",[p1]) | void AcquireReaderLock(int millisecondsTimeout)void AcquireReaderLock(TimeSpan timeout) |
AcquireWriterLock | callMethod("AcquireWriterLock",[p1]) | void AcquireWriterLock(int millisecondsTimeout)void AcquireWriterLock(TimeSpan timeout) |
AnyWritersSince | callMethod("AnyWritersSince",[p1]) | bool AnyWritersSince(int seqNum) |
DowngradeFromWriterLock | DowngradeFromWriterLock(p1) | void DowngradeFromWriterLock(ref LockCookie lockCookie) |
ReleaseLock | callMethod("ReleaseLock",[]) | LockCookie ReleaseLock() |
ReleaseReaderLock | callMethod("ReleaseReaderLock",[]) | void ReleaseReaderLock() |
ReleaseWriterLock | callMethod("ReleaseWriterLock",[]) | void ReleaseWriterLock() |
RestoreLock | RestoreLock(p1) | void RestoreLock(ref LockCookie lockCookie) |
UpgradeToWriterLock | callMethod("UpgradeToWriterLock",[p1]) | LockCookie UpgradeToWriterLock(int millisecondsTimeout)LockCookie UpgradeToWriterLock(TimeSpan timeout) |
Members of the base class are inherited.
ReaderWriterLockSlim class
System.Threading.ReaderWriterLockSlim · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new ReaderWriterLockSlim() |
new ReaderWriterLockSlim(LockRecursionPolicy recursionPolicy) |
Ring: new ReaderWriterLockSlim(args) uses one constructor; the others are chosen by the parameter names: new ReaderWriterLockSlim().@New([ :param = value ]) or dnNew("ReaderWriterLockSlim",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsReadLockHeld | bool | read | o.IsReadLockHeld |
IsUpgradeableReadLockHeld | bool | read | o.IsUpgradeableReadLockHeld |
IsWriteLockHeld | bool | read | o.IsWriteLockHeld |
RecursionPolicy | LockRecursionPolicy | read | o.RecursionPolicy |
CurrentReadCount | int | read | o.CurrentReadCount |
RecursiveReadCount | int | read | o.RecursiveReadCount |
RecursiveUpgradeCount | int | read | o.RecursiveUpgradeCount |
RecursiveWriteCount | int | read | o.RecursiveWriteCount |
WaitingReadCount | int | read | o.WaitingReadCount |
WaitingUpgradeCount | int | read | o.WaitingUpgradeCount |
WaitingWriteCount | int | read | o.WaitingWriteCount |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
EnterReadLock | callMethod("EnterReadLock",[]) | void EnterReadLock() |
EnterUpgradeableReadLock | callMethod("EnterUpgradeableReadLock",[]) | void EnterUpgradeableReadLock() |
EnterWriteLock | callMethod("EnterWriteLock",[]) | void EnterWriteLock() |
ExitReadLock | callMethod("ExitReadLock",[]) | void ExitReadLock() |
ExitUpgradeableReadLock | callMethod("ExitUpgradeableReadLock",[]) | void ExitUpgradeableReadLock() |
ExitWriteLock | callMethod("ExitWriteLock",[]) | void ExitWriteLock() |
TryEnterReadLock | TryEnterReadLock(p1) | bool TryEnterReadLock(TimeSpan timeout)bool TryEnterReadLock(int millisecondsTimeout) |
TryEnterUpgradeableReadLock | TryEnterUpgradeableReadLock(p1) | bool TryEnterUpgradeableReadLock(TimeSpan timeout)bool TryEnterUpgradeableReadLock(int millisecondsTimeout) |
TryEnterWriteLock | TryEnterWriteLock(p1) | bool TryEnterWriteLock(TimeSpan timeout)bool TryEnterWriteLock(int millisecondsTimeout) |
RegisteredWaitHandle class sealed
System.Threading.RegisteredWaitHandle · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Unregister | Unregister(p1) | bool Unregister(WaitHandle waitObject) |
Semaphore class sealed · extends WaitHandle
System.Threading.Semaphore · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new Semaphore(int initialCount, int maximumCount) |
new Semaphore(int initialCount, int maximumCount, string name) |
new Semaphore(int initialCount, int maximumCount, string name, out bool createdNew) |
Ring: new Semaphore(args) uses one constructor; the others are chosen by the parameter names: new Semaphore().@New([ :param = value ]) or dnNew("Semaphore",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
OpenExisting | OpenExisting(p1) | static Semaphore OpenExisting(string name) |
Release | callMethod("Release",[])callMethod("Release",[p1]) | int Release()int Release(int releaseCount) |
TryOpenExisting | TryOpenExisting(p1) | static bool TryOpenExisting(string name, out Semaphore result) |
Members of the base class are inherited.
SemaphoreFullException class · extends SystemException
System.Threading.SemaphoreFullException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new SemaphoreFullException() |
new SemaphoreFullException(string message) |
new SemaphoreFullException(string message, Exception innerException) |
Ring: new SemaphoreFullException(args) uses one constructor; the others are chosen by the parameter names: new SemaphoreFullException().@New([ :param = value ]) or dnNew("SemaphoreFullException",[ :param = value ]).
Members of the base class are inherited.
SemaphoreSlim class
System.Threading.SemaphoreSlim · assembly System.Private.CoreLib
Implements: IDisposable
Constructors
new SemaphoreSlim(int initialCount) |
new SemaphoreSlim(int initialCount, int maxCount) |
Ring: new SemaphoreSlim(args) uses one constructor; the others are chosen by the parameter names: new SemaphoreSlim().@New([ :param = value ]) or dnNew("SemaphoreSlim",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CurrentCount | int | read | o.CurrentCount |
AvailableWaitHandle | WaitHandle | read | o.AvailableWaitHandle |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
Release | callMethod("Release",[])callMethod("Release",[p1]) | int Release()int Release(int releaseCount) |
Wait | Wait(NULL)Wait(value)Wait([ :cancellationToken = … ])Wait([ :timeout = … ])Wait([ :millisecondsTimeout = … ])Wait([ :timeout = …, :cancellationToken = … ]) | void Wait()void Wait(CancellationToken cancellationToken)bool Wait(TimeSpan timeout)bool Wait(TimeSpan timeout, CancellationToken cancellationToken)bool Wait(int millisecondsTimeout)bool Wait(int millisecondsTimeout, CancellationToken cancellationToken) |
WaitAsync | WaitAsync(NULL)WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :millisecondsTimeout = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task WaitAsync()Task WaitAsync(CancellationToken cancellationToken)Task<bool> WaitAsync(int millisecondsTimeout)Task<bool> WaitAsync(TimeSpan timeout)Task<bool> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task<bool> WaitAsync(int millisecondsTimeout, CancellationToken cancellationToken) |
SpinLock struct
System.Threading.SpinLock · assembly System.Private.CoreLib
Constructors
new SpinLock(bool enableThreadOwnerTracking) |
Ring: new SpinLock(args) uses one constructor; the others are chosen by the parameter names: new SpinLock().@New([ :param = value ]) or dnNew("SpinLock",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsHeld | bool | read | o.IsHeld |
IsHeldByCurrentThread | bool | read | o.IsHeldByCurrentThread |
IsThreadOwnerTrackingEnabled | bool | read | o.IsThreadOwnerTrackingEnabled |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Enter | Enter(p1) | void Enter(ref bool lockTaken) |
Exit | callMethod("Exit",[])callMethod("Exit",[p1]) | void Exit()void Exit(bool useMemoryBarrier) |
TryEnter | TryEnter(value)TryEnter([ :lockTaken = … ])TryEnter([ :timeout = …, :lockTaken = … ])TryEnter([ :millisecondsTimeout = …, :lockTaken = … ]) | void TryEnter(ref bool lockTaken)void TryEnter(TimeSpan timeout, ref bool lockTaken)void TryEnter(int millisecondsTimeout, ref bool lockTaken) |
SpinWait struct
System.Threading.SpinWait · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
NextSpinWillYield | bool | read | o.NextSpinWillYield |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Reset | callMethod("Reset",[]) | void Reset() |
SpinOnce | callMethod("SpinOnce",[])callMethod("SpinOnce",[p1]) | void SpinOnce()void SpinOnce(int sleep1Threshold) |
SpinUntil | SpinUntil(value)SpinUntil([ :condition = … ])SpinUntil([ :condition = …, :timeout = … ])SpinUntil([ :condition = …, :millisecondsTimeout = … ]) | static void SpinUntil(Func<bool> condition)static bool SpinUntil(Func<bool> condition, TimeSpan timeout)static bool SpinUntil(Func<bool> condition, int millisecondsTimeout) |
SynchronizationContext class
System.Threading.SynchronizationContext · assembly System.Private.CoreLib
Constructors
new SynchronizationContext() |
Ring: new SynchronizationContext(args) uses one constructor; the others are chosen by the parameter names: new SynchronizationContext().@New([ :param = value ]) or dnNew("SynchronizationContext",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Current | SynchronizationContext | read · static | o.Current |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateCopy | callMethod("CreateCopy",[]) | SynchronizationContext CreateCopy() |
IsWaitNotificationRequired | callMethod("IsWaitNotificationRequired",[]) | bool IsWaitNotificationRequired() |
OperationCompleted | callMethod("OperationCompleted",[]) | void OperationCompleted() |
OperationStarted | callMethod("OperationStarted",[]) | void OperationStarted() |
Post | Post(p1,p2) | void Post(SendOrPostCallback d, object state) |
Send | Send(p1,p2) | void Send(SendOrPostCallback d, object state) |
SetSynchronizationContext | SetSynchronizationContext(p1) | static void SetSynchronizationContext(SynchronizationContext syncContext) |
Wait | Wait(p1,p2,p3) | int Wait(IntPtr[] waitHandles, bool waitAll, int millisecondsTimeout) |
SynchronizationLockException class · extends SystemException
System.Threading.SynchronizationLockException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new SynchronizationLockException() |
new SynchronizationLockException(string message) |
new SynchronizationLockException(string message, Exception innerException) |
Ring: new SynchronizationLockException(args) uses one constructor; the others are chosen by the parameter names: new SynchronizationLockException().@New([ :param = value ]) or dnNew("SynchronizationLockException",[ :param = value ]).
Members of the base class are inherited.
Thread class sealed · extends CriticalFinalizerObject
System.Threading.Thread · assembly System.Private.CoreLib
Constructors
new Thread(ThreadStart start) |
new Thread(ThreadStart start, int maxStackSize) |
new Thread(ParameterizedThreadStart start) |
new Thread(ParameterizedThreadStart start, int maxStackSize) |
Ring: new Thread(args) uses one constructor; the others are chosen by the parameter names: new Thread().@New([ :param = value ]) or dnNew("Thread",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ManagedThreadId | int | read | o.ManagedThreadId |
IsAlive | bool | read | o.IsAlive |
IsBackground | bool | read, write | o.IsBackground o.IsBackground = v |
IsThreadPoolThread | bool | read | o.IsThreadPoolThread |
Priority | ThreadPriority | read, write | o.Priority o.Priority = v |
ThreadState | ThreadState | read | o.ThreadState |
CurrentCulture | CultureInfo | read, write | o.CurrentCulture o.CurrentCulture = v |
CurrentUICulture | CultureInfo | read, write | o.CurrentUICulture o.CurrentUICulture = v |
ExecutionContext | ExecutionContext | read | o.ExecutionContext |
Name | string | read, write | o.Name o.Name = v |
ApartmentState | ApartmentState | read, write | o.ApartmentState o.ApartmentState = v |
CurrentPrincipal | IPrincipal | read, write · static | o.CurrentPrincipal o.CurrentPrincipal = v |
CurrentThread | Thread | read · static | o.CurrentThread |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Abort | callMethod("Abort",[])callMethod("Abort",[p1]) | void Abort()void Abort(object stateInfo) |
AllocateDataSlot | AllocateDataSlot() | static LocalDataStoreSlot AllocateDataSlot() |
AllocateNamedDataSlot | AllocateNamedDataSlot(p1) | static LocalDataStoreSlot AllocateNamedDataSlot(string name) |
BeginCriticalRegion | callMethod("BeginCriticalRegion",[]) | static void BeginCriticalRegion() |
BeginThreadAffinity | callMethod("BeginThreadAffinity",[]) | static void BeginThreadAffinity() |
DisableComObjectEagerCleanup | callMethod("DisableComObjectEagerCleanup",[]) | void DisableComObjectEagerCleanup() |
EndCriticalRegion | callMethod("EndCriticalRegion",[]) | static void EndCriticalRegion() |
EndThreadAffinity | callMethod("EndThreadAffinity",[]) | static void EndThreadAffinity() |
FreeNamedDataSlot | callMethod("FreeNamedDataSlot",[p1]) | static void FreeNamedDataSlot(string name) |
GetApartmentState | callMethod("GetApartmentState",[]) | ApartmentState GetApartmentState() |
GetCompressedStack | callMethod("GetCompressedStack",[]) | CompressedStack GetCompressedStack() |
GetCurrentProcessorId | callMethod("GetCurrentProcessorId",[]) | static int GetCurrentProcessorId() |
GetData | GetData(p1) | static object GetData(LocalDataStoreSlot slot) |
GetDomain | GetDomain() | static AppDomain GetDomain() |
GetDomainID | callMethod("GetDomainID",[]) | static int GetDomainID() |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
GetNamedDataSlot | GetNamedDataSlot(p1) | static LocalDataStoreSlot GetNamedDataSlot(string name) |
Interrupt | callMethod("Interrupt",[]) | void Interrupt() |
Join | Join(NULL)Join(value)Join([ :millisecondsTimeout = … ])Join([ :timeout = … ]) | bool Join(int millisecondsTimeout)void Join()bool Join(TimeSpan timeout) |
MemoryBarrier | callMethod("MemoryBarrier",[]) | static void MemoryBarrier() |
ResetAbort | callMethod("ResetAbort",[]) | static void ResetAbort() |
Resume | callMethod("Resume",[]) | void Resume() |
SetApartmentState | @SetApartmentState(p1) | void SetApartmentState(ApartmentState state) |
SetCompressedStack | SetCompressedStack(p1) | void SetCompressedStack(CompressedStack stack) |
SetData | SetData(p1,p2) | static void SetData(LocalDataStoreSlot slot, object data) |
Sleep | callMethod("Sleep",[p1]) | static void Sleep(int millisecondsTimeout)static void Sleep(TimeSpan timeout) |
SpinWait | callMethod("SpinWait",[p1]) | static void SpinWait(int iterations) |
Start | callMethod("Start",[])callMethod("Start",[p1]) | void Start(object parameter)void Start() |
Suspend | callMethod("Suspend",[]) | void Suspend() |
TrySetApartmentState | TrySetApartmentState(p1) | bool TrySetApartmentState(ApartmentState state) |
UnsafeStart | callMethod("UnsafeStart",[])callMethod("UnsafeStart",[p1]) | void UnsafeStart(object parameter)void UnsafeStart() |
VolatileRead | VolatileRead(p1) | static byte VolatileRead(ref byte address)static double VolatileRead(ref double address)static short VolatileRead(ref short address)static int VolatileRead(ref int address)static long VolatileRead(ref long address)static IntPtr VolatileRead(ref IntPtr address)static object VolatileRead(ref object address)static sbyte VolatileRead(ref sbyte address)static float VolatileRead(ref float address)static ushort VolatileRead(ref ushort address)static uint VolatileRead(ref uint address)static ulong VolatileRead(ref ulong address)static UIntPtr VolatileRead(ref UIntPtr address) |
VolatileWrite | VolatileWrite(p1,p2) | static void VolatileWrite(ref byte address, byte value)static void VolatileWrite(ref double address, double value)static void VolatileWrite(ref short address, short value)static void VolatileWrite(ref int address, int value)static void VolatileWrite(ref long address, long value)static void VolatileWrite(ref IntPtr address, IntPtr value)static void VolatileWrite(ref object address, object value)static void VolatileWrite(ref sbyte address, sbyte value)static void VolatileWrite(ref float address, float value)static void VolatileWrite(ref ushort address, ushort value)static void VolatileWrite(ref uint address, uint value)static void VolatileWrite(ref ulong address, ulong value)static void VolatileWrite(ref UIntPtr address, UIntPtr value) |
Yield | callMethod("Yield",[]) | static bool Yield() |
Members of the base class are inherited.
ThreadAbortException class sealed · extends SystemException
System.Threading.ThreadAbortException · assembly System.Private.CoreLib
Implements: ISerializable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ExceptionState | object | read | o.ExceptionState |
Members of the base class are inherited.
ThreadExceptionEventArgs class · extends EventArgs
System.Threading.ThreadExceptionEventArgs · assembly System.Private.CoreLib
Constructors
new ThreadExceptionEventArgs(Exception t) |
Ring: new ThreadExceptionEventArgs(args) uses one constructor; the others are chosen by the parameter names: new ThreadExceptionEventArgs().@New([ :param = value ]) or dnNew("ThreadExceptionEventArgs",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Exception | Exception | read | o.Exception |
Members of the base class are inherited.
ThreadInterruptedException class · extends SystemException
System.Threading.ThreadInterruptedException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new ThreadInterruptedException() |
new ThreadInterruptedException(string message) |
new ThreadInterruptedException(string message, Exception innerException) |
Ring: new ThreadInterruptedException(args) uses one constructor; the others are chosen by the parameter names: new ThreadInterruptedException().@New([ :param = value ]) or dnNew("ThreadInterruptedException",[ :param = value ]).
Members of the base class are inherited.
ThreadLocal class
System.Threading.ThreadLocal`1 · assembly System.Private.CoreLib
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Value | T | read, write | o.Value o.Value = v |
Values | IList<T> | read | o.Values |
IsValueCreated | bool | read | o.IsValueCreated |
ThreadPool class static
System.Threading.ThreadPool · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
PendingWorkItemCount | long | read · static | o.PendingWorkItemCount |
ThreadCount | int | read · static | o.ThreadCount |
CompletedWorkItemCount | long | read · static | o.CompletedWorkItemCount |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
BindHandle | BindHandle(p1) | static bool BindHandle(IntPtr osHandle)static bool BindHandle(SafeHandle osHandle) |
GetAvailableThreads | GetAvailableThreads() | static void GetAvailableThreads(out int workerThreads, out int completionPortThreads) |
GetMaxThreads | GetMaxThreads() | static void GetMaxThreads(out int workerThreads, out int completionPortThreads) |
GetMinThreads | GetMinThreads() | static void GetMinThreads(out int workerThreads, out int completionPortThreads) |
QueueUserWorkItem | QueueUserWorkItem(value)QueueUserWorkItem([ :callBack = … ])QueueUserWorkItem([ :callBack = …, :state = … ])QueueUserWorkItem([ :callBack = …, :state = …, :preferLocal = … ]) | static bool QueueUserWorkItem(WaitCallback callBack)static bool QueueUserWorkItem(WaitCallback callBack, object state)static bool QueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal) |
RegisterWaitForSingleObject | RegisterWaitForSingleObject(p1,p2,p3,p4,p5) | static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce)static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce)static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce)static RegisteredWaitHandle RegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, TimeSpan timeout, bool executeOnlyOnce) |
SetMaxThreads | callMethod("SetMaxThreads",[p1,p2]) | static bool SetMaxThreads(int workerThreads, int completionPortThreads) |
SetMinThreads | callMethod("SetMinThreads",[p1,p2]) | static bool SetMinThreads(int workerThreads, int completionPortThreads) |
UnsafeQueueNativeOverlapped | UnsafeQueueNativeOverlapped(p1) | static bool UnsafeQueueNativeOverlapped(NativeOverlapped* overlapped) |
UnsafeQueueUserWorkItem | UnsafeQueueUserWorkItem([ :callBack = …, :state = … ])UnsafeQueueUserWorkItem([ :callBack = …, :preferLocal = … ])UnsafeQueueUserWorkItem([ :callBack = …, :state = …, :preferLocal = … ]) | static bool UnsafeQueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal)static bool UnsafeQueueUserWorkItem(WaitCallback callBack, object state)static bool UnsafeQueueUserWorkItem(IThreadPoolWorkItem callBack, bool preferLocal) |
UnsafeRegisterWaitForSingleObject | UnsafeRegisterWaitForSingleObject(p1,p2,p3,p4,p5) | static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, uint millisecondsTimeOutInterval, bool executeOnlyOnce)static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, int millisecondsTimeOutInterval, bool executeOnlyOnce)static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, long millisecondsTimeOutInterval, bool executeOnlyOnce)static RegisteredWaitHandle UnsafeRegisterWaitForSingleObject(WaitHandle waitObject, WaitOrTimerCallback callBack, object state, TimeSpan timeout, bool executeOnlyOnce) |
ThreadPoolBoundHandle class sealed
System.Threading.ThreadPoolBoundHandle · assembly System.Private.CoreLib
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Handle | SafeHandle | read | o.Handle |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AllocateNativeOverlapped | callMethod("AllocateNativeOverlapped",[p1])callMethod("AllocateNativeOverlapped",[p1,p2,p3]) | NativeOverlapped* AllocateNativeOverlapped(IOCompletionCallback callback, object state, object pinData)NativeOverlapped* AllocateNativeOverlapped(PreAllocatedOverlapped preAllocated) |
BindHandle | BindHandle(p1) | static ThreadPoolBoundHandle BindHandle(SafeHandle handle) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
FreeNativeOverlapped | FreeNativeOverlapped(p1) | void FreeNativeOverlapped(NativeOverlapped* overlapped) |
GetNativeOverlappedState | GetNativeOverlappedState(p1) | static object GetNativeOverlappedState(NativeOverlapped* overlapped) |
UnsafeAllocateNativeOverlapped | UnsafeAllocateNativeOverlapped(p1,p2,p3) | NativeOverlapped* UnsafeAllocateNativeOverlapped(IOCompletionCallback callback, object state, object pinData) |
ThreadStartException class sealed · extends SystemException
System.Threading.ThreadStartException · assembly System.Private.CoreLib
Implements: ISerializable
Members of the base class are inherited.
ThreadStateException class · extends SystemException
System.Threading.ThreadStateException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new ThreadStateException() |
new ThreadStateException(string message) |
new ThreadStateException(string message, Exception innerException) |
Ring: new ThreadStateException(args) uses one constructor; the others are chosen by the parameter names: new ThreadStateException().@New([ :param = value ]) or dnNew("ThreadStateException",[ :param = value ]).
Members of the base class are inherited.
Timeout class static
System.Threading.Timeout · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
InfiniteTimeSpan | TimeSpan | read · static | o.InfiniteTimeSpan |
Infinite | int | constant · static | o.Infinite |
Timer class sealed
System.Threading.Timer · assembly System.Private.CoreLib
Implements: IDisposable, IAsyncDisposable, ITimer
Constructors
new Timer(TimerCallback callback, object state, int dueTime, int period) |
new Timer(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period) |
new Timer(TimerCallback callback, object state, uint dueTime, uint period) |
new Timer(TimerCallback callback, object state, long dueTime, long period) |
new Timer(TimerCallback callback) |
Ring: new Timer(args) uses one constructor; the others are chosen by the parameter names: new Timer().@New([ :param = value ]) or dnNew("Timer",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ActiveCount | long | read · static | o.ActiveCount |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Change | callMethod("Change",[p1,p2]) | bool Change(int dueTime, int period)bool Change(TimeSpan dueTime, TimeSpan period)bool Change(uint dueTime, uint period)bool Change(long dueTime, long period) |
Dispose | Dispose(NULL)Dispose(value)Dispose([ :notifyObject = … ]) | bool Dispose(WaitHandle notifyObject)void Dispose() |
DisposeAsync | callMethod("DisposeAsync",[]) | ValueTask DisposeAsync() |
Volatile class static
System.Threading.Volatile · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Read | callMethod("Read",[p1]) | static bool Read(ref bool location)static byte Read(ref byte location)static double Read(ref double location)static short Read(ref short location)static int Read(ref int location)static long Read(ref long location)static IntPtr Read(ref IntPtr location)static sbyte Read(ref sbyte location)static float Read(ref float location)static ushort Read(ref ushort location)static uint Read(ref uint location)static ulong Read(ref ulong location)static UIntPtr Read(ref UIntPtr location)static T Read<T>(ref T location) |
Write | Write(p1,p2) | static void Write(ref bool location, bool value)static void Write(ref byte location, byte value)static void Write(ref double location, double value)static void Write(ref short location, short value)static void Write(ref int location, int value)static void Write(ref long location, long value)static void Write(ref IntPtr location, IntPtr value)static void Write(ref sbyte location, sbyte value)static void Write(ref float location, float value)static void Write(ref ushort location, ushort value)static void Write(ref uint location, uint value)static void Write(ref ulong location, ulong value)static void Write(ref UIntPtr location, UIntPtr value)static void Write<T>(ref T location, T value) |
WaitHandle class abstract
System.Threading.WaitHandle · assembly System.Private.CoreLib
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Handle | IntPtr | read, write | o.Handle o.Handle = v |
SafeWaitHandle | SafeWaitHandle | read, write | o.SafeWaitHandle o.SafeWaitHandle = v |
WaitTimeout | int | constant · static | o.WaitTimeout |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Close | callMethod("Close",[]) | void Close() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
SignalAndWait | SignalAndWait([ :toSignal = …, :toWaitOn = … ])SignalAndWait([ :toSignal = …, :toWaitOn = …, :timeout = …, :exitContext = … ])SignalAndWait([ :toSignal = …, :toWaitOn = …, :millisecondsTimeout = …, :exitContext = … ]) | static bool SignalAndWait(WaitHandle toSignal, WaitHandle toWaitOn)static bool SignalAndWait(WaitHandle toSignal, WaitHandle toWaitOn, TimeSpan timeout, bool exitContext)static bool SignalAndWait(WaitHandle toSignal, WaitHandle toWaitOn, int millisecondsTimeout, bool exitContext) |
WaitAll | WaitAll(value)WaitAll([ :waitHandles = … ])WaitAll([ :waitHandles = …, :millisecondsTimeout = … ])WaitAll([ :waitHandles = …, :timeout = … ])WaitAll([ :waitHandles = …, :millisecondsTimeout = …, :exitContext = … ]) | static bool WaitAll(WaitHandle[] waitHandles, int millisecondsTimeout)static bool WaitAll(WaitHandle[] waitHandles, TimeSpan timeout)static bool WaitAll(WaitHandle[] waitHandles)static bool WaitAll(WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext)static bool WaitAll(WaitHandle[] waitHandles, TimeSpan timeout, bool exitContext) |
WaitAny | WaitAny(value)WaitAny([ :waitHandles = … ])WaitAny([ :waitHandles = …, :millisecondsTimeout = … ])WaitAny([ :waitHandles = …, :timeout = … ])WaitAny([ :waitHandles = …, :millisecondsTimeout = …, :exitContext = … ]) | static int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout)static int WaitAny(WaitHandle[] waitHandles, TimeSpan timeout)static int WaitAny(WaitHandle[] waitHandles)static int WaitAny(WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext)static int WaitAny(WaitHandle[] waitHandles, TimeSpan timeout, bool exitContext) |
WaitOne | callMethod("WaitOne",[])callMethod("WaitOne",[p1])callMethod("WaitOne",[p1,p2]) | bool WaitOne(int millisecondsTimeout)bool WaitOne(TimeSpan timeout)bool WaitOne()bool WaitOne(int millisecondsTimeout, bool exitContext)bool WaitOne(TimeSpan timeout, bool exitContext) |
WaitHandleCannotBeOpenedException class · extends ApplicationException
System.Threading.WaitHandleCannotBeOpenedException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new WaitHandleCannotBeOpenedException() |
new WaitHandleCannotBeOpenedException(string message) |
new WaitHandleCannotBeOpenedException(string message, Exception innerException) |
Ring: new WaitHandleCannotBeOpenedException(args) uses one constructor; the others are chosen by the parameter names: new WaitHandleCannotBeOpenedException().@New([ :param = value ]) or dnNew("WaitHandleCannotBeOpenedException",[ :param = value ]).
Members of the base class are inherited.
WaitHandleExtensions class static
System.Threading.WaitHandleExtensions · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetSafeWaitHandle | GetSafeWaitHandle(p1) | static SafeWaitHandle GetSafeWaitHandle(WaitHandle waitHandle) |
SetSafeWaitHandle | SetSafeWaitHandle(p1,p2) | static void SetSafeWaitHandle(WaitHandle waitHandle, SafeWaitHandle value) |