File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -196,10 +196,10 @@ def included(klass)
196
196
# Returns the singleton instance.
197
197
end
198
198
199
- module PerRactorSingleton
199
+ module RactorLocalSingleton
200
200
include Singleton ::SingletonInstanceMethods
201
201
202
- module PerRactorSingletonClassMethods
202
+ module RactorLocalSingletonClassMethods
203
203
include Singleton ::SingletonClassMethods
204
204
def instance
205
205
set_mutex ( Thread ::Mutex . new ) if Ractor . current [ mutex_key ] . nil?
@@ -214,11 +214,11 @@ def instance
214
214
private
215
215
216
216
def instance_key
217
- :"__PerRactorSingleton_instance_with_class_id_ #{ object_id } __"
217
+ :"__RactorLocalSingleton_instance_with_class_id_ #{ object_id } __"
218
218
end
219
219
220
220
def mutex_key
221
- :"__PerRactorSingleton_mutex_with_class_id_ #{ object_id } __"
221
+ :"__RactorLocalSingleton_mutex_with_class_id_ #{ object_id } __"
222
222
end
223
223
224
224
def set_instance ( val )
@@ -231,7 +231,7 @@ def set_mutex(val)
231
231
end
232
232
233
233
def self . module_with_class_methods
234
- PerRactorSingletonClassMethods
234
+ RactorLocalSingletonClassMethods
235
235
end
236
236
237
237
extend Singleton ::SingletonClassProperties
You can’t perform that action at this time.
0 commit comments