Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UnsafeQueueUserWorkItem() [2/2]

static bool System.Threading.ThreadPool.UnsafeQueueUserWorkItem ( WaitCallback callBack,
object? state )
inlinestatic

Definition at line 546 of file ThreadPool.cs.

547 {
548 if (callBack == null)
549 {
550 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.callBack);
551 }
552 object callback = new QueueUserWorkItemCallbackDefaultContext(callBack, state);
553 s_workQueue.Enqueue(callback, forceGlobal: true);
554 return true;
555 }
static readonly ThreadPoolWorkQueue s_workQueue
Definition ThreadPool.cs:16

References System.callBack, System.Threading.ThreadPool.s_workQueue, System.state, and System.ThrowHelper.ThrowArgumentNullException().

Referenced by System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.InvokeContinuation(), System.Threading.Tasks.UnwrapPromise< TResult >.InvokeCoreAsync(), System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore< TResult >.OnCompleted(), System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.QueueContinuation(), Microsoft.Win32.SafeHandles.SafeFileHandle.ThreadPoolValueTaskSource.QueueToThreadPool(), System.Threading.Tasks.Parallel.ForEachAsyncState< TSource >.QueueWorkerIfDopAvailable(), System.Net.NameResolutionPal.GetAddrInfoExState.SetResult(), System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore< TResult >.SignalCompletion(), System.Threading.Tasks.TaskScheduler.TaskSchedulerAwaiter.UnsafeOnCompleted(), System.Threading.Channels.AsyncOperation< TResult >.UnsafeQueueSetCompletionAndInvokeContinuation(), and System.Threading.Channels.AsyncOperation< TResult >.UnsafeQueueUserWorkItem().