Project

General

Profile

Actions

Bug #554

closed

Sync_m#sync_try_lockの引数が無視されている

Added by akira (akira yamada) about 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-dev:36233]

Description

=begin
こうだったりしないでしょうか?:

--- lib/sync.rb (revision 19272)
+++ lib/sync.rb (working copy)
@@ -126,9 +126,9 @@

# locking methods.
def sync_try_lock(mode = EX)
  • return unlock if sync_mode == UN
  • return unlock if mode == UN
    @sync_mutex.synchronize do
  •  ret = sync_try_lock_sub(sync_mode)
    
  •  ret = sync_try_lock_sub(mode)
    
    end
    ret
    end

ruby_1_8でも同じです。
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0