Class: Object

Inherits:
BasicObject
Defined in:
lib/gosling/object_cache.rb

Constant Summary collapse

FIDDLE_FREEZE_BIT =
~(1 << 3)

Instance Method Summary collapse

Instance Method Details

#unfreezeObject



6
7
8
9
10
# File 'lib/gosling/object_cache.rb', line 6

def unfreeze
  ptr = @fiddle_pointer || Fiddle::Pointer.new(object_id * 2)
  ptr[1] &= FIDDLE_FREEZE_BIT
  @fiddle_pointer = ptr
end