1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Fixed GC race condition starting an autodelete thread

This commit is contained in:
Brian Fiete 2020-08-31 11:29:11 -07:00
parent 43660fb633
commit b3354ee635
5 changed files with 39 additions and 7 deletions

View file

@ -41,6 +41,8 @@ namespace System.Threading
static void Thread_SetInternalThread(Object thread, void* internalThread)
{
if (internalThread != null)
GC.[Friend]AddPendingThread(internalThread);
((Thread)thread).[Friend]mInternalThread = (int)internalThread;
}