Project

General

Profile

Actions

Backport #3212

closed

ConditionVariable may become inconsistent for interrupted threads

Added by sylvain.joyeux (Sylvain Joyeux) over 14 years ago. Updated almost 12 years ago.

Status:
Closed
Assignee:
-
[ruby-core:29835]

Description

=begin
While tracking another issue with ConditionVariable, I realized that ConditionVariable#wait assumes that the waking-up side (#signal and #broadcast) will remove the thread from the list of waiters.

Unfortunately, Mutex#sleep may return right away if an interrupt is set for the thread, in which case the thread will stay in the condition variable's waiting list.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0