MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / createThread

Function createThread

extlibs/soloud/src/core/soloud_thread.cpp:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 ThreadHandle createThread(threadFunction aThreadFunction, void *aParameter)
92 {
93 soloud_thread_data *d = new soloud_thread_data;
94 d->mFunc = aThreadFunction;
95 d->mParam = aParameter;
96 HANDLE h = CreateThread(NULL,0,threadfunc,d,0,NULL);
97 if (0 == h)
98 {
99 return 0;
100 }
101 ThreadHandleData *threadHandle = new ThreadHandleData;
102 threadHandle->thread = h;
103 return threadHandle;
104 }
105
106 void sleep(int aMSec)
107 {

Callers 8

opensles_initFunction · 0.85
winmm_initFunction · 0.85
alsa_initFunction · 0.85
oss_initFunction · 0.85
openal_initFunction · 0.85
xaudio2_initFunction · 0.85
wasapi_initFunction · 0.85
initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected