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

◆ TryCreateWorkerThread()

static bool System.Threading.PortableThreadPool.WorkerThread.TryCreateWorkerThread ( )
inlinestaticprivate

Definition at line 1183 of file PortableThreadPool.cs.

1184 {
1185 try
1186 {
1187 Thread thread = new Thread(s_workerThreadStart);
1188 thread.IsThreadPoolThread = true;
1189 thread.IsBackground = true;
1190 thread.UnsafeStart();
1191 }
1192 catch (ThreadStartException)
1193 {
1194 return false;
1195 }
1196 catch (OutOfMemoryException)
1197 {
1198 return false;
1199 }
1200 return true;
1201 }

References System.Threading.PortableThreadPool.WorkerThread.s_workerThreadStart, and System.Threading.Thread.UnsafeStart().

Referenced by System.Threading.PortableThreadPool.WorkerThread.MaybeAddWorkingWorker().