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:
parent
43660fb633
commit
b3354ee635
5 changed files with 39 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue