From e2e70591a1c97210a30b145f1b44babade4b5082 Mon Sep 17 00:00:00 2001 From: Marc Siegel Date: Thu, 26 Dec 2013 12:47:09 -0500 Subject: [PATCH] On posix, allow ruby threads to continue during wait / try_wait --- lib/process_shared/posix/semaphore.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/process_shared/posix/semaphore.rb b/lib/process_shared/posix/semaphore.rb index e75028f..fab29f8 100644 --- a/lib/process_shared/posix/semaphore.rb +++ b/lib/process_shared/posix/semaphore.rb @@ -26,9 +26,9 @@ module ProcessShared attach_function :sem_getvalue, [:sem_p, :pointer], :int attach_function :sem_post, [:sem_p], :int - attach_function :sem_wait, [:sem_p], :int - attach_function :sem_trywait, [:sem_p], :int - attach_function :sem_timedwait, [:sem_p, TimeSpec], :int + attach_function :sem_wait, [:sem_p], :int, :blocking => true + attach_function :sem_trywait, [:sem_p], :int, :blocking => true + attach_function :sem_timedwait, [:sem_p, TimeSpec], :int, :blocking => true error_check(:sem_close, :sem_unlink, :sem_init, :sem_destroy, :sem_getvalue, :sem_post, :sem_wait, :sem_trywait,