mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-21 06:31:17 +00:00
clang format fixes
This commit is contained in:
parent
8a89c9cfaf
commit
088f6ce09e
@ -42,7 +42,6 @@ MxResult MxThread::Start(MxS32 p_stackSize, MxS32 p_flag)
|
|||||||
{
|
{
|
||||||
MxResult result = FAILURE;
|
MxResult result = FAILURE;
|
||||||
|
|
||||||
|
|
||||||
if (m_semaphore.Init(0, 1) == SUCCESS) {
|
if (m_semaphore.Init(0, 1) == SUCCESS) {
|
||||||
#ifdef PSP
|
#ifdef PSP
|
||||||
int thid = sceKernelCreateThread(
|
int thid = sceKernelCreateThread(
|
||||||
@ -66,16 +65,16 @@ MxResult MxThread::Start(MxS32 p_stackSize, MxS32 p_flag)
|
|||||||
#else
|
#else
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
const SDL_PropertiesID props = SDL_CreateProperties();
|
const SDL_PropertiesID props = SDL_CreateProperties();
|
||||||
SDL_SetPointerProperty(props, SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER, (void*) MxThread::ThreadProc);
|
SDL_SetPointerProperty(props, SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER, (void*) MxThread::ThreadProc);
|
||||||
SDL_SetPointerProperty(props, SDL_PROP_THREAD_CREATE_USERDATA_POINTER, this);
|
SDL_SetPointerProperty(props, SDL_PROP_THREAD_CREATE_USERDATA_POINTER, this);
|
||||||
SDL_SetNumberProperty(props, SDL_PROP_THREAD_CREATE_STACKSIZE_NUMBER, p_stackSize * 4);
|
SDL_SetNumberProperty(props, SDL_PROP_THREAD_CREATE_STACKSIZE_NUMBER, p_stackSize * 4);
|
||||||
|
|
||||||
if (!(m_thread = SDL_CreateThreadWithProperties(props))) {
|
if (!(m_thread = SDL_CreateThreadWithProperties(props))) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DestroyProperties(props);
|
SDL_DestroyProperties(props);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
result = SUCCESS;
|
result = SUCCESS;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user