ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:97063] [Ruby master Bug#16608] ConditionVariable#wait should return false when timeout exceeded
@ 2020-02-05  9:16 shugo
  2020-02-07  5:46 ` [ruby-core:97081] " shugo
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: shugo @ 2020-02-05  9:16 UTC (permalink / raw)
  To: ruby-core

Issue #16608 has been reported by shugo (Shugo Maeda).

----------------------------------------
Bug #16608: ConditionVariable#wait should return false when timeout exceeded
https://bugs.ruby-lang.org/issues/16608

* Author: shugo (Shugo Maeda)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
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.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-24 19:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05  9:16 [ruby-core:97063] [Ruby master Bug#16608] ConditionVariable#wait should return false when timeout exceeded shugo
2020-02-07  5:46 ` [ruby-core:97081] " shugo
2020-02-07  7:37 ` [ruby-core:97083] " shugo
2020-05-27 23:05 ` [ruby-core:98552] " merch-redmine
2021-03-10 19:37 ` [ruby-core:102813] " merch-redmine
2021-03-18  0:06 ` [ruby-core:102910] " merch-redmine
2021-03-18 14:38 ` [ruby-core:102917] " eregontp
2021-04-16  8:51 ` [ruby-core:103479] " ko1
2021-06-16 16:46 ` [ruby-core:104312] " merch-redmine
2021-06-24 19:24 ` [ruby-core:104396] " merch-redmine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).