[SDL] Semaphore Question?

Arthur J. Yarwood Arthur at bruce.chilly.org
Thu Apr 12 10:13:14 PDT 2001


When working with Semaphore, if you get an error when calling
SDL_SemWait() or SDL_SemPost(), what could this indicate?

Should I handle it gracefully with an 'if' statement, or is simply an
assert, good enough? I was thinking of speed you see, when I'm sure it
all runs well with no Semaphore errors, I could just add -DNDEBUG, to
skip all the semaphore checks. 

Any advice anyone?

Arthur.






More information about the SDL mailing list