def wait(timeout=0)
			if(timeout == nil || timeout <= 0)
				@waiters << Thread.current
				Thread.stop
				return true
			else
				begin
					@waiters << Thread.current
					status = Timeout::timeout(timeout) {
					  Thread.current[:'__THREADZ_IS_SLEEPING'] = true
					  Thread.stop
					  Thread.current[:'__THREADZ_IS_SLEEPING'] = false
					}
					return true
				rescue Timeout::Error
					return false
				end
			end
		end
def wait(timeout=0)
			if(timeout == nil || timeout <= 0)
				@waiters << Thread.current
				Thread.stop
				return true
			else
				begin
					@waiters << Thread.current
					status = Timeout::timeout(timeout) {
					  Thread.current[:'__THREADZ_IS_SLEEPING'] = true
					  Thread.stop
					  Thread.current[:'__THREADZ_IS_SLEEPING'] = false
					}
					return true
				rescue Timeout::Error
					return false
				end
			end
		end
:nodoc: all