mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-10 19:15:24 +00:00
Cleanup.
This commit is contained in:
@@ -923,7 +923,7 @@ namespace entry
|
||||
|
||||
WindowHandle findHandle(SDL_Window* _window)
|
||||
{
|
||||
bx::LwMutexScope scope(m_lock);
|
||||
bx::MutexScope scope(m_lock);
|
||||
for (uint32_t ii = 0, num = m_windowAlloc.getNumHandles(); ii < num; ++ii)
|
||||
{
|
||||
uint16_t idx = m_windowAlloc.getHandleAt(ii);
|
||||
@@ -972,7 +972,7 @@ namespace entry
|
||||
bx::Thread m_thread;
|
||||
|
||||
EventQueue m_eventQueue;
|
||||
bx::LwMutex m_lock;
|
||||
bx::Mutex m_lock;
|
||||
|
||||
bx::HandleAllocT<ENTRY_CONFIG_MAX_WINDOWS> m_windowAlloc;
|
||||
SDL_Window* m_window[ENTRY_CONFIG_MAX_WINDOWS];
|
||||
@@ -1011,7 +1011,7 @@ namespace entry
|
||||
|
||||
WindowHandle createWindow(int32_t _x, int32_t _y, uint32_t _width, uint32_t _height, uint32_t _flags, const char* _title)
|
||||
{
|
||||
bx::LwMutexScope scope(s_ctx.m_lock);
|
||||
bx::MutexScope scope(s_ctx.m_lock);
|
||||
WindowHandle handle = { s_ctx.m_windowAlloc.alloc() };
|
||||
|
||||
if (UINT16_MAX != handle.idx)
|
||||
@@ -1036,7 +1036,7 @@ namespace entry
|
||||
{
|
||||
sdlPostEvent(SDL_USER_WINDOW_DESTROY, _handle);
|
||||
|
||||
bx::LwMutexScope scope(s_ctx.m_lock);
|
||||
bx::MutexScope scope(s_ctx.m_lock);
|
||||
s_ctx.m_windowAlloc.free(_handle.idx);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user