Updated thread funcs to match bx.

This commit is contained in:
Branimir Karadžić 2017-11-04 15:18:33 -07:00
parent 782194e097
commit ea7c59db33
2 changed files with 3 additions and 3 deletions

View File

@ -313,7 +313,7 @@ namespace entry
int m_argc; int m_argc;
const char* const* m_argv; const char* const* m_argv;
static int32_t threadFunc(void* _userData); static int32_t threadFunc(bx::Thread* _thread, void* _userData);
}; };
struct Msg struct Msg
@ -1096,7 +1096,7 @@ namespace entry
PostMessage(s_ctx.m_hwnd[0], WM_USER_WINDOW_MOUSE_LOCK, _handle.idx, _lock); PostMessage(s_ctx.m_hwnd[0], WM_USER_WINDOW_MOUSE_LOCK, _handle.idx, _lock);
} }
int32_t MainThreadEntry::threadFunc(void* _userData) int32_t MainThreadEntry::threadFunc(bx::Thread* /*_thread*/, void* _userData)
{ {
MainThreadEntry* self = (MainThreadEntry*)_userData; MainThreadEntry* self = (MainThreadEntry*)_userData;
int32_t result = main(self->m_argc, self->m_argv); int32_t result = main(self->m_argc, self->m_argv);

View File

@ -2562,7 +2562,7 @@ namespace bgfx
{ {
} }
static int32_t renderThread(void* /*_userData*/) static int32_t renderThread(bx::Thread* /*_self*/, void* /*_userData*/)
{ {
BX_TRACE("render thread start"); BX_TRACE("render thread start");
BGFX_PROFILER_SET_CURRENT_THREAD_NAME("bgfx - Render Thread"); BGFX_PROFILER_SET_CURRENT_THREAD_NAME("bgfx - Render Thread");