Method: AGI#semaphore

Defined in:
lib/ruby-agi/agi.rb

#semaphoreObject



162
163
164
165
166
167
168
169
170
171
172
# File 'lib/ruby-agi/agi.rb', line 162

def semaphore
	if block_given?
		stderr_semaphore.synchronize do 
			stdout_semaphore.synchronize do 
				stdin_semaphore.synchronize do 
					yield
				end
			end
		end
	end
end