Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyPanda07 committed Jul 4, 2023
1 parent e115496 commit 5a6b353
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GUIFramework/src/GUIFramework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,12 @@ namespace gui_framework

GUIFramework& GUIFramework::GUIFramework::get()
{
static mutex getInstanceMutex;

if (!instance)
{
unique_lock<mutex> lock(getInstanceMutex);

instance.reset(new GUIFramework());
}

Expand Down

0 comments on commit 5a6b353

Please sign in to comment.