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

Function ResetEvent

SourceX/thread.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void ResetEvent(event_emul *e)
59{
60 if (SDL_LockMutex(e->mutex) <= -1 || SDL_CondWaitTimeout(e->cond, e->mutex, 0) <= -1 || SDL_UnlockMutex(e->mutex) <= -1) {
61 ErrSdl();
62 }
63}
64
65int WaitForEvent(event_emul *e)
66{

Callers 2

dthread_handlerFunction · 0.85
clearMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected