D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Thread
/
Mutex
/
Filename :
sleep-i.ri
back
Copy
U:RDoc::AnyMethod[iI" sleep:ETI"Thread::Mutex#sleep;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GReleases the lock and sleeps +timeout+ seconds if it is given and ;TI"Knon-nil or forever. Raises +ThreadError+ if +mutex+ wasn't locked by ;TI"the current thread.;To:RDoc::Markup::BlankLine o; ; [I"DWhen the thread is next woken up, it will attempt to reacquire ;TI"the lock.;T@o; ; [I"KNote that this method can wakeup without explicit Thread#wakeup call. ;TI"-For example, receiving signal and so on.;T@o; ; [I"JReturns the slept time in seconds if woken up, or +nil+ if timed out.;T: @fileI"thread_sync.c;T:0@omit_headings_from_table_of_contents_below0I"4mutex.sleep(timeout = nil) -> number or nil ;T0[ I"(*args);T@FI" Mutex;TcRDoc::NormalClass00