mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Implemented IsBackground. Added GC.Disable
This commit is contained in:
parent
af783bec7e
commit
c21be1eea1
6 changed files with 69 additions and 24 deletions
|
@ -2180,6 +2180,12 @@ void BFGC::AddPendingThread(BfInternalThread* internalThread)
|
|||
mPendingThreads.TryAdd(internalThread->mThreadId, internalThread);
|
||||
}
|
||||
|
||||
void BFGC::Disable()
|
||||
{
|
||||
StopCollecting();
|
||||
mGracelessShutdown = true;
|
||||
}
|
||||
|
||||
void BFGC::Shutdown()
|
||||
{
|
||||
if (mShutdown)
|
||||
|
@ -2896,6 +2902,11 @@ void GC::RemoveStackMarkableObject(Object* obj)
|
|||
gBFGC.RemoveStackMarkableObject(obj);
|
||||
}
|
||||
|
||||
void GC::Disable()
|
||||
{
|
||||
gBFGC.Disable();
|
||||
}
|
||||
|
||||
void GC::Shutdown()
|
||||
{
|
||||
gBFGC.Shutdown();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue