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

Function StartEvent

SourceX/thread.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29event_emul *StartEvent()
30{
31 event_emul *ret;
32 ret = (event_emul *)malloc(sizeof(event_emul));
33 ret->mutex = SDL_CreateMutex();
34 if (ret->mutex == NULL) {
35 ErrSdl();
36 }
37 ret->cond = SDL_CreateCond();
38 if (ret->cond == NULL) {
39 ErrSdl();
40 }
41 return ret;
42}
43
44void EndEvent(event_emul *event)
45{

Callers 1

dthread_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected