mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(thread): implement SThread::Create for windows
This commit is contained in:
parent
4dbfb0b3be
commit
db87a5d782
7 changed files with 41 additions and 6 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include "storm/thread/mac/SThreadRunner.h"
|
||||
#include <new>
|
||||
|
||||
int32_t SCreateThread(uint32_t (*threadProc)(void*), void* threadParam, void* a3, SThread* syncObject, const char* threadName) {
|
||||
void* SCreateThread(uint32_t (*threadProc)(void*), void* threadParam, void* a3, SThread* syncObject, const char* threadName) {
|
||||
if (!threadName) {
|
||||
threadName = "";
|
||||
}
|
||||
|
|
@ -71,5 +71,5 @@ int32_t SCreateThread(uint32_t (*threadProc)(void*), void* threadParam, void* a3
|
|||
// TODO
|
||||
// S_Thread::s_threadCrit.Leave();
|
||||
|
||||
return threadId;
|
||||
return reinterpret_cast<void*>(threadId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue