📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 09:05:01
📂
/ (Root)
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
Thread
/
Mutex
📍 /opt/alt/ruby31/share/ri/system/Thread/Mutex
🔄 Refresh
✏️
Editing: cdesc-Mutex.ri
Read Only
U:RDoc::NormalClass[iI" Mutex:ETI"Thread::Mutex;TI"Object;To:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"EThread::Mutex implements a simple semaphore that can be used to ;TI"Gcoordinate access to shared data from multiple concurrent threads.;To:RDoc::Markup::BlankLine o; ;[I" Example:;T@o:RDoc::Markup::Verbatim;[I"#semaphore = Thread::Mutex.new ;TI" ;TI"a = Thread.new { ;TI" semaphore.synchronize { ;TI"" # access shared resource ;TI" } ;TI"} ;TI" ;TI"b = Thread.new { ;TI" semaphore.synchronize { ;TI"" # access shared resource ;TI" } ;TI"};T:@format0: @fileI"thread_sync.c;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[[I"new;TI"thread_sync.c;T[I" instance;T[[;[ [;[ [;[[I" lock;T@5[I"locked?;T@5[I"owned?;T@5[I" sleep;T@5[I"synchronize;T@5[I" try_lock;T@5[I"unlock;T@5[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[I"thread_sync.c;TI"Thread;TcRDoc::NormalClass
💾 Save Changes
❌ Cancel