[opensuse-programming] pthread_mutex vs semaphore.h ?
![](https://seccdn.libravatar.org/avatar/7891b1b1a5767f4b9ac1cc0723cebdac.jpg?s=120&d=mm&r=g)
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
2245
Age (days ago)
2245
Last active (days ago)
0 comments
1 participants
participants (1)
-
Per Jessen