Searched refs:lock (Results 1 - 3 of 3) sorted by relevance

/ontohub/lib/
H A Dsemaphore.rb1 # The Semaphore class allows to lock resources. The processes are blocked, i.e.
2 # not polling, when they wait for a lock to be opened.
3 # They are executed in order they arrive at the lock.
24 def lock method in class:Semaphore
26 @sema.lock
51 sema.lock
/ontohub/spec/lib/
H A Dsemaphore_spec.rb36 context 'using lock' do
39 it 'is locked after using lock' do
40 sema.lock
45 it 'is not locked after using lock and unlock' do
46 sema.lock
/ontohub/lib/hets/
H A Dconcurrent_evaluator.rb39 semaphore.lock

Completed in 23 milliseconds