JezK
Edit File: cdesc-CheapLockable.ri
U:RDoc::NormalModule[iI"CheapLockable:EFI"0Concurrent::ThreadSafe::Util::CheapLockable;F0o:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"LProvides a cheapest possible (mainly in terms of memory usage) +Mutex+ ;TI"-with the +ConditionVariable+ bundled in.;To:RDoc::Markup::BlankLine o; ;[I"Usage:;To:RDoc::Markup::Verbatim;[I" class A ;TI" include CheapLockable ;TI" ;TI" def do_exlusively ;TI"% cheap_synchronize { yield } ;TI" end ;TI" ;TI" def wait_for_something ;TI" cheap_synchronize do ;TI"0 cheap_wait until resource_available? ;TI" do_something ;TI", cheap_broadcast # wake up others ;TI" end ;TI" end ;TI" end ;T:@format0o; ;[I"@!visibility private;T: @fileI"6lib/concurrent/thread_safe/util/cheap_lockable.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[[I"cheap_broadcast;FI"6lib/concurrent/thread_safe/util/cheap_lockable.rb;T[I"cheap_synchronize;F@B[I"cheap_wait;F@B[[I" Volatile;To;;[ ; @);0@B[U:RDoc::Context::Section[i 0o;;[ ; 0;0[@)I"!Concurrent::ThreadSafe::Util;FcRDoc::NormalModule