global

def wait_for_value(mutex, timeout = nil)

def wait_for_value(mutex, timeout = nil)
	condition.wait(mutex, timeout)
	return self.value
end