Project

General

Profile

Actions

Backport #5509

closed

[patch] scope error in Sync#sync_try_lock

Added by angdraug (Dmitry Borodaenko) about 13 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
[ruby-core:40511]

Description

The fix says it all:

--- sync.rb.bak 2011-10-29 18:28:13.684027886 +0300
+++ sync.rb 2011-10-29 18:28:47.136028818 +0300
@@ -127,6 +127,7 @@

locking methods.

def sync_try_lock(mode = EX)
return unlock if mode == UN

  • ret = nil
    @sync_mutex.synchronize do
    ret = sync_try_lock_sub(mode)
    end
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0