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

◆ s_semaphore

readonly LowLevelLifoSemaphore System.Threading.PortableThreadPool.WorkerThread.s_semaphore
staticprivate
Initial value:
= new LowLevelLifoSemaphore(0, 32767, AppContextConfigHelper.GetInt32Config("System.Threading.ThreadPool.UnfairSemaphoreSpinLimit", 70, allowNegative: false), delegate
{
if (NativeRuntimeEventSource.Log.IsEnabled())
{
NativeRuntimeEventSource.Log.ThreadPoolWorkerThreadWait((uint)ThreadPoolInstance._separated.counts.VolatileRead().NumExistingThreads, 0u, 0);
}
})
static readonly PortableThreadPool ThreadPoolInstance

Definition at line 995 of file PortableThreadPool.cs.

Referenced by System.Threading.PortableThreadPool.WorkerThread.MaybeAddWorkingWorker(), and System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart().