[opensuse-programming] pthread_mutex vs semaphore.h ?
4 Jun
2018
4 Jun
'18
06:45
I'm reviving some old code, dates back to 2010. In one place I see I have replaced use of pthread_mutexes with sem_wait() and sem_post() (posix semaphores). I just can't see why I did it. :-( The semantics are slightly different, but can anyone suggest why one should use one over the other? (or vice versa). -- Per Jessen, Zürich (18.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-programming+owner@opensuse.org
2392
Age (days ago)
2392
Last active (days ago)
0 comments
1 participants
participants (1)
-
Per Jessen