summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2021-06-28 23:01:53 +0900
committerNobuyoshi Nakada <[email protected]>2021-06-29 11:41:10 +0900
commit9eae8cdefba61e9e51feb30a4b98525593169666 (patch)
treeb54d8502f7e7733e48c798e517f7676bf0395a51 /lib
parent983c9ad3f197ab8612c08ea894765b43ed089749 (diff)
Prefer qualified names under Thread
Diffstat (limited to 'lib')
-rw-r--r--lib/forwardable.rb2
-rw-r--r--lib/mutex_m.rb12
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/forwardable.rb b/lib/forwardable.rb
index fb24b8c3e6..c9c4128f9f 100644
--- a/lib/forwardable.rb
+++ b/lib/forwardable.rb
@@ -76,7 +76,7 @@
# def_delegators :@q, :clear, :first, :push, :shift, :size
# end
#
-# q = Queue.new
+# q = Thread::Queue.new
# q.enq 1, 2, 3, 4, 5
# q.push 6
#
diff --git a/lib/mutex_m.rb b/lib/mutex_m.rb
index 18b6256595..706d3c1b3c 100644
--- a/lib/mutex_m.rb
+++ b/lib/mutex_m.rb
@@ -73,32 +73,32 @@ module Mutex_m
mu_initialize
end
- # See Mutex#synchronize
+ # See Thread::Mutex#synchronize
def mu_synchronize(&block)
@_mutex.synchronize(&block)
end
- # See Mutex#locked?
+ # See Thread::Mutex#locked?
def mu_locked?
@_mutex.locked?
end
- # See Mutex#try_lock
+ # See Thread::Mutex#try_lock
def mu_try_lock
@_mutex.try_lock
end
- # See Mutex#lock
+ # See Thread::Mutex#lock
def mu_lock
@_mutex.lock
end
- # See Mutex#unlock
+ # See Thread::Mutex#unlock
def mu_unlock
@_mutex.unlock
end
- # See Mutex#sleep
+ # See Thread::Mutex#sleep
def sleep(timeout = nil)
@_mutex.sleep(timeout)
end