davidbrit2
Licensed Computer Geek
So apparently OS X doesn't support semaphores, despite providing fully formed header files for the API. Yeah, okay, whatever, that makes a hell of a lot of sense. I do so love mysterious run-time errors instead of straight-forward compiler errors.
Anyway, what's the simplest way of getting a small threaded program using the basic sem_init(), sem_wait(), and sem_post() stuff to work on OS X? I saw some references to using the Carbon API and corresponding MP calls, but it was a little sparse on implementation details.
Anyway, what's the simplest way of getting a small threaded program using the basic sem_init(), sem_wait(), and sem_post() stuff to work on OS X? I saw some references to using the Carbon API and corresponding MP calls, but it was a little sparse on implementation details.