File tree Expand file tree Collapse file tree 2 files changed +24
-18
lines changed Expand file tree Collapse file tree 2 files changed +24
-18
lines changed Original file line number Diff line number Diff line change 4
4
require 'concurrent/synchronization/mutex_object'
5
5
require 'concurrent/synchronization/monitor_object'
6
6
require 'concurrent/synchronization/rbx_object'
7
+ require 'concurrent/synchronization/object'
8
+
9
+ require 'concurrent/synchronization/immutable_struct'
7
10
8
11
module Concurrent
9
12
# {include:file:doc/synchronization.md}
10
13
module Synchronization
11
- Implementation = case
12
- when Concurrent . on_jruby?
13
- JavaObject
14
- when Concurrent . on_cruby? && ( RUBY_VERSION . split ( '.' ) . map ( &:to_i ) <=> [ 1 , 9 , 3 ] ) <= 0
15
- MonitorObject
16
- when Concurrent . on_cruby?
17
- MutexObject
18
- when Concurrent . on_rbx?
19
- RbxObject
20
- else
21
- MutexObject
22
- end
23
- private_constant :Implementation
24
-
25
- # @see AbstractObject
26
- class Object < Implementation
27
- end
28
14
end
29
15
end
30
16
31
- require 'concurrent/synchronization/immutable_struct'
Original file line number Diff line number Diff line change
1
+ module Concurrent
2
+ module Synchronization
3
+ Implementation = case
4
+ when Concurrent . on_jruby?
5
+ JavaObject
6
+ when Concurrent . on_cruby? && ( RUBY_VERSION . split ( '.' ) . map ( &:to_i ) <=> [ 1 , 9 , 3 ] ) <= 0
7
+ MonitorObject
8
+ when Concurrent . on_cruby?
9
+ MutexObject
10
+ when Concurrent . on_rbx?
11
+ RbxObject
12
+ else
13
+ MutexObject
14
+ end
15
+ private_constant :Implementation
16
+
17
+ # @see AbstractObject AbstractObject which defines interface of this class.
18
+ class Object < Implementation
19
+ end
20
+ end
21
+ end
You can’t perform that action at this time.
0 commit comments