Project

General

Profile

Actions

Bug #16608

closed

ConditionVariable#wait should return false when timeout exceeded

Added by shugo (Shugo Maeda) almost 5 years ago. Updated over 3 years ago.

Status:
Closed
Target version:
-
[ruby-core:97063]

Description

The following program prints false on Ruby 1.8, but true on Ruby 1.9 or later.

require "monitor"
m = Monitor.new
c = m.new_cond
m.synchronize { p c.wait(0.1) }

However, it's not critical because most programs check the condition after wait.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0