Module: ProcessShared::SynchronizableSemaphore
- Included in:
- Mach::Semaphore, Posix::Semaphore
- Defined in:
- lib/process_shared/synchronizable_semaphore.rb
Instance Method Summary collapse
-
#synchronize ⇒ Object
Yield the block after decrementing the semaphore, ensuring that the semaphore is incremented.
Instance Method Details
#synchronize ⇒ Object
Yield the block after decrementing the semaphore, ensuring that the semaphore is incremented.
7 8 9 10 11 12 13 14 |
# File 'lib/process_shared/synchronizable_semaphore.rb', line 7 def synchronize wait begin yield ensure post end end |