mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-14 07:36:26 +00:00
Fix TSan-reported race conditions
This commit is contained in:
@@ -57,6 +57,7 @@ static inline void SetFullscreen(OGLContext::Window& win, bool fs)
|
||||
g_nwcv.wait(lk);
|
||||
}
|
||||
|
||||
#if BOO_HAS_VULKAN
|
||||
static inline void SetFullscreen(boo::VulkanContext::Window& win, bool fs)
|
||||
{
|
||||
std::unique_lock<std::mutex> lk(g_nwmt);
|
||||
@@ -64,6 +65,7 @@ static inline void SetFullscreen(boo::VulkanContext::Window& win, bool fs)
|
||||
g_nwcv.wait(lk);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct Boo3DAppContextWin32 : Boo3DAppContext
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user