[+] Shutdown runtime on unsafe main thread termination
[+] Grug will flush everything inline on deinit [*] Fix bug in BufferedCharConsumer, didn't return char in peak (doh)
This commit is contained in:
parent
3f4cf93877
commit
cd8cfd4f1c
@ -32,6 +32,11 @@ namespace Aurora::Exit
|
||||
SysPushErrorTimeoutError("Program never executed runtime shutdown -> announcing abnormal shutdown");
|
||||
PostLevel(AuThreads::GetThread(), ETriggerLevel::eProblematicEvent);
|
||||
PostLevel(AuThreads::GetThread(), ETriggerLevel::eSafeTermination);
|
||||
|
||||
if (Aurora::RuntimeHasStarted())
|
||||
{
|
||||
Aurora::RuntimeShutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -125,6 +125,9 @@ namespace Aurora::Grug
|
||||
|
||||
void DeinitGrug()
|
||||
{
|
||||
Aurora::Grug::GrugFlushWrites();
|
||||
Aurora::Grug::GrugFlushFlushs();
|
||||
|
||||
gGrugsBigWorld.reset();
|
||||
gMutex.reset();
|
||||
gCondVar.reset();
|
||||
|
@ -40,6 +40,7 @@ namespace Aurora::IO::Character
|
||||
return false;
|
||||
}
|
||||
|
||||
out = this->peeked_;
|
||||
return this->hasNext_;
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ namespace Aurora::Parse
|
||||
return false;
|
||||
}
|
||||
|
||||
//AuLogDbg("returned {} {}", out, count != 0);
|
||||
//AuLogDbg("returned {} {}", out, out.size() != 0);
|
||||
return out.size() != 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user