Project

General

Profile

Actions

Bug #19709

closed

`Thread.join(timeout)` hangs in fiber scheduler.

Added by ioquatix (Samuel Williams) 11 months ago. Updated 9 months ago.

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

Description

Unfortunately the following script can hang:

require_relative 'test/fiber/scheduler'

scheduler = Scheduler.new
Fiber.set_scheduler scheduler

Fiber.schedule do
  thread = Thread.new{sleep}
  thread.join(0.1)
end

The termination condition in the thread_join is not expressed correctly.

Updated by ioquatix (Samuel Williams) 11 months ago

  • Status changed from Assigned to Closed

Merged.

Updated by nagachika (Tomoyuki Chikanaga) 9 months ago

  • Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED to 3.0: REQUIRED, 3.1: REQUIRED, 3.2: DONE

ruby_3_2 a3911b965f094f07080cf7adb22ee5e2e8555d86 merged revision(s) 0402193723647b8c4f57b1453fe2192ad2788d12.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0