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

◆ UnsafeQueueUserWorkItem() [1/2]

static bool System.Threading.ThreadPool.UnsafeQueueUserWorkItem ( IThreadPoolWorkItem callBack,
bool preferLocal )
inlinestatic

Definition at line 557 of file ThreadPool.cs.

558 {
559 if (callBack == null)
560 {
561 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.callBack);
562 }
563 if (callBack is Task)
564 {
565 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.callBack);
566 }
568 return true;
569 }
static void UnsafeQueueUserWorkItemInternal(object callBack, bool preferLocal)

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