MCPcopy Create free account
hub / github.com/diasurgical/devilution / CreateThread

Function CreateThread

SourceX/thread.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15SDL_Thread *CreateThread(unsigned int (*handler)(void *), SDL_threadID *ThreadID)
16{
17#ifdef USE_SDL1
18 SDL_Thread *ret = SDL_CreateThread(thread_translate, (void *)handler);
19#else
20 SDL_Thread *ret = SDL_CreateThread(thread_translate, NULL, (void *)handler);
21#endif
22 if (ret == NULL) {
23 ErrSdl();
24 }
25 *ThreadID = SDL_GetThreadID(ret);
26 return ret;
27}
28
29event_emul *StartEvent()
30{

Callers 4

nthread_startFunction · 0.85
dthread_startFunction · 0.85
wince_threadMethod · 0.85
winapp_threadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected