Permalink
Browse files

Fixes a code comment in Concurrent::{Hash,Array} [ci skip]

  • Loading branch information...
fxn committed Jan 11, 2019
1 parent 74f9570 commit c13f7340e017ff822f34e4cc50a010786574c159
Showing with 6 additions and 6 deletions.
  1. +3 −3 lib/concurrent/array.rb
  2. +3 −3 lib/concurrent/hash.rb
@@ -21,8 +21,9 @@ module Concurrent
# @!macro internal_implementation_note
ArrayImplementation = case
when Concurrent.on_cruby?
# Because MRI never runs code in parallel, the existing
# non-thread-safe structures should usually work fine.
# Array is thread-safe in practice because CRuby runs
# threads one at a time and does not do context
# switching during the execution of C functions.
::Array

when Concurrent.on_jruby?
@@ -63,4 +64,3 @@ class Array < ArrayImplementation
end

end

@@ -15,8 +15,9 @@ module Concurrent
# @!macro internal_implementation_note
HashImplementation = case
when Concurrent.on_cruby?
# Because MRI never runs code in parallel, the existing
# non-thread-safe structures should usually work fine.
# Hash is thread-safe in practice because CRuby runs
# threads one at a time and does not do context
# switching during the execution of C functions.
::Hash

when Concurrent.on_jruby?
@@ -56,4 +57,3 @@ class Hash < HashImplementation
end

end

0 comments on commit c13f734

Please sign in to comment.