feat: add thread safety helpers

This commit is contained in:
goaaats 2022-05-27 14:43:56 +02:00
parent 9bebbf2140
commit 8d304dc24b
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 51 additions and 1 deletions

View file

@ -99,6 +99,8 @@ namespace Dalamud
{
try
{
ThreadSafety.MarkMainThread();
SerilogEventSink.Instance.LogLine += SerilogOnLogLine;
Service<ServiceContainer>.Set();
@ -115,7 +117,6 @@ namespace Dalamud
// Signal the main game thread to continue
NativeFunctions.SetEvent(this.mainThreadContinueEvent);
Log.Information("[T1] Game thread continued!");
// Initialize FFXIVClientStructs function resolver