Project

General

Profile

Actions

Feature #10371

open

Use Thread#handle_interrupt in MonitorMixin

Added by nerdrew (Andrew Lazarus) over 9 years ago. Updated over 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:65628]

Description

Now that ruby has Thread#handle_interrupt, MonitorMixin can always unlock the mutex even when a timeout exception is raised.

Currently, if a timeout exception is raised in MonitorMixin#mon_exit at just the wrong time, the @mon_owner is set to nil, but the @mon_mutex is still locked. ThreadError: deadlock; recursive locking is raised the next time the resource is accessed.

Actions

Also available in: Atom PDF

Like0
Like0Like0