From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id C8D8B1F5AE for ; Wed, 16 Jun 2021 16:46:23 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 681E8120D28; Thu, 17 Jun 2021 01:45:08 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id A9434120D28 for ; Thu, 17 Jun 2021 01:45:05 +0900 (JST) Received: by filterdrecv-589b9448d8-jvhcb with SMTP id filterdrecv-589b9448d8-jvhcb-1-60CA2AD0-6B 2021-06-16 16:46:08.617617833 +0000 UTC m=+1108576.525158360 Received: from herokuapp.com (unknown) by ismtpd0167p1mdw1.sendgrid.net (SG) with ESMTP id bQbBd0AxREy_6u6bzeXceA for ; Wed, 16 Jun 2021 16:46:08.525 +0000 (UTC) Date: Wed, 16 Jun 2021 16:46:08 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 16608 X-Redmine-Issue-Author: shugo X-Redmine-Issue-Assignee: soutaro X-Redmine-Sender: jeremyevans0 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 80426 X-SG-EID: =?us-ascii?Q?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BIYtHBFGdUpGkk=2FalJbxdvxZKz0L5j+ypfb9s04?= =?us-ascii?Q?6T7joueT1H4jeHgO2D6+RRLhSoLGfyntidS5sl3?= =?us-ascii?Q?sUI8krGk65xcFWSIzy7C1hEu2Xtd5j2xyno6twv?= =?us-ascii?Q?cE=2Ffpq8PQ=2Fs3OmLKSEVU0SUgttRW64IPh7Nui=2F5?= =?us-ascii?Q?t3pcT8xvijJG2kuW8=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 104312 Subject: [ruby-core:104312] [Ruby master Bug#16608] ConditionVariable#wait should return false when timeout exceeded X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16608 has been updated by jeremyevans0 (Jeremy Evans). Assignee changed from nobu (Nobuyoshi Nakada) to soutaro (Soutaro Matsumoto) I submitted a pull request to rbs to fix the failure (https://github.com/ruby/rbs/pull/683) I also updated the ruby pull request (https://github.com/ruby/ruby/pull/4256) to rebase it on the current master branch. Once the rbs pull request is merged and a release is made, we should be able to merge the ruby pull request. ---------------------------------------- Bug #16608: ConditionVariable#wait should return false when timeout exceeded https://bugs.ruby-lang.org/issues/16608#change-92535 * Author: shugo (Shugo Maeda) * Status: Assigned * Priority: Normal * Assignee: soutaro (Soutaro Matsumoto) * 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/