diff options
Diffstat (limited to 'prelude.rb')
-rw-r--r-- | prelude.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/prelude.rb b/prelude.rb new file mode 100644 index 0000000000..423c9c423e --- /dev/null +++ b/prelude.rb @@ -0,0 +1,14 @@ + +# Mutex + +class Mutex + class Mutex + def synchronize + self.lock + yield + ensure + self.unlock + end + end +end + |