summaryrefslogtreecommitdiff
path: root/lib/sync.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sync.rb')
-rw-r--r--lib/sync.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sync.rb b/lib/sync.rb
index 378c659..dc513fc 100644
--- a/lib/sync.rb
+++ b/lib/sync.rb
@@ -135,7 +135,7 @@ module Sync_m
def sync_lock(m = EX)
return unlock if m == UN
- Thread.async_interrupt_timing(StandardError => :on_blocking) do
+ Thread.handle_interrupt(StandardError => :on_blocking) do
while true
@sync_mutex.synchronize do
begin
@@ -227,7 +227,7 @@ module Sync_m
end
def sync_synchronize(mode = EX)
- Thread.async_interrupt_timing(StandardError => :on_blocking) do
+ Thread.handle_interrupt(StandardError => :on_blocking) do
sync_lock(mode)
begin
yield