[SDL] semaphores made from mutexes?

Sam Lantinga slouken at devolution.com
Wed Apr 19 11:05:11 PDT 2000

> If initial_value > 1, SDL_SemPost() will (potentially) be called by a
> thread that has not originally locked the mutex.

That's okay.  In fact that is the way it is supposed to work.  The first
block on the mutex when count == 0 should block, and then any subsequent
post should unblock the waiting thread.

Am I misunderstanding you?

	-Sam Lantinga, Lead Programmer, Loki Entertainment Software

More information about the SDL mailing list