tag:blogger.com,1999:blog-8986782557879316238.post4239807363271477847..comments2023-06-06T08:16:34.738-07:00Comments on Paul Beach's Blog: Semaphores With TimeoutsPaul Beachhttp://www.blogger.com/profile/01887777727779537695noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8986782557879316238.post-69302061209285939872011-12-31T08:12:07.473-08:002011-12-31T08:12:07.473-08:00http://alastairs-place.net/blog/2009/11/12/cross-p...http://alastairs-place.net/blog/2009/11/12/cross-process-s/ appears relatedRoger Packhttps://www.blogger.com/profile/11616218501182408463noreply@blogger.comtag:blogger.com,1999:blog-8986782557879316238.post-5381731102980335762008-02-09T10:06:00.000-08:002008-02-09T10:06:00.000-08:00I know it's not exactly the same, but you can use ...I know it's not exactly the same, but you can use mach semaphores (/usr/include/mach/semaphore.h). It's fairly easy to write a C macro wrapper to decide between sem_init/semaphore_create, sem_wait/semaphore_wait and sem_post/semaphore_signal. It also has timeouts which I think you were wanting. Feel free to email me if you have any questions about semaphores.Tomhttps://www.blogger.com/profile/02531199245217162120noreply@blogger.com