diff options
Diffstat (limited to 'prelude.rb')
-rw-r--r-- | prelude.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/prelude.rb b/prelude.rb index 4b6ab1a677..2b371e7134 100644 --- a/prelude.rb +++ b/prelude.rb @@ -1,19 +1,3 @@ -class Mutex - # call-seq: - # mutex.synchronize { ... } - # - # Obtains a lock, runs the block, and releases the lock when the - # block completes. See the example under Mutex. - def synchronize - self.lock - begin - yield - ensure - self.unlock rescue nil - end - end -end - class Thread MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new # :nodoc: |