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

◆ UnsafeQueueUserWorkItem< TState >()

static bool System.Threading.ThreadPool.UnsafeQueueUserWorkItem< TState > ( Action< TState > callBack,
TState state,
bool preferLocal )
inlinestatic

Definition at line 527 of file ThreadPool.cs.

528 {
529 if (callBack == null)
530 {
531 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.callBack);
532 }
534 {
536 {
537 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.state);
538 }
540 return true;
541 }
543 return true;
544 }
static readonly ThreadPoolWorkQueue s_workQueue
Definition ThreadPool.cs:16
static void UnsafeQueueUserWorkItemInternal(object callBack, bool preferLocal)
static readonly Action< object > s_invokeAsyncStateMachineBox
Definition ThreadPool.cs:18

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