Sha256: 0512f086be9df7b01bd388a58730cc1a977f6ef2e8374cef7288d062f9cd6cf2

Contents?: true

Size: 468 Bytes

Versions: 4

Compression:

Stored size: 468 Bytes

Contents

#Predefined synchronized array.
#
#===Examples
# arr = Tsafe::MonArray.new
# arr << 5
# ret = arr[0]
class Tsafe::MonArray < ::Array
  @@tsafe_rwmutex_w_methods = [:<<, :collect, :collect!, :compact!, :delete, :delete_at, :delete_if, :drop, :drop_while, :fill, :flatten!, :insert, :keep_if, :map, :map!, :replace, :shuffle!, :slice!, :shift, :sort!, :sort_by!, :unshift]
  @@tsafe_rwmutex_r_methods = [:each, :each_index, :take_while]
  
  include Tsafe::SynModule
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tsafe-0.0.5 lib/tsafe_monarray.rb
tsafe-0.0.4 include/monarray.rb
tsafe-0.0.3 include/monarray.rb
tsafe-0.0.2 include/monarray.rb