mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(thread): implement S_Thread::s_SLaunchThread for linux
This commit is contained in:
parent
9475df632d
commit
c4043d24ee
1 changed files with 20 additions and 0 deletions
|
|
@ -3,4 +3,24 @@
|
|||
|
||||
void* S_Thread::s_SLaunchThread(void* threadParam) {
|
||||
// TODO
|
||||
|
||||
auto params = static_cast<SThreadParmBlock*>(threadParam);
|
||||
|
||||
// TODO
|
||||
|
||||
params->threadProc(params->threadParam);
|
||||
|
||||
// TODO
|
||||
|
||||
if (params->syncObject) {
|
||||
pthread_mutex_lock(¶ms->syncObject->m_mutex);
|
||||
params->syncObject->m_value1 = 1;
|
||||
pthread_mutex_unlock(¶ms->syncObject->m_mutex);
|
||||
|
||||
pthread_cond_signal(¶ms->syncObject->m_cond);
|
||||
}
|
||||
|
||||
SMemFree(threadParam);
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue