We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d4195 commit f465e95Copy full SHA for f465e95
lib/concurrent/mvar.rb
@@ -1,4 +1,5 @@
1
require 'concurrent/concern/dereferenceable'
2
+require 'concurrent/synchronization'
3
4
module Concurrent
5
@@ -34,9 +35,9 @@ module Concurrent
34
35
# 2. S. Peyton Jones, A. Gordon, and S. Finne. [Concurrent Haskell](http://dl.acm.org/citation.cfm?id=237794).
36
# In Proceedings of the 23rd Symposium on Principles of Programming Languages
37
# (PoPL), 1996.
- class MVar
38
-
+ class MVar < Synchronization::Object
39
include Concern::Dereferenceable
40
+ safe_initialization!
41
42
# Unique value that represents that an `MVar` was empty
43
EMPTY = Object.new
0 commit comments