Class: Ethon::Easy::Operations::PointerHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/ethon/easy/operations.rb

Class Method Summary collapse

Class Method Details

.release(pointer) ⇒ Object


14
15
16
# File 'lib/ethon/easy/operations.rb', line 14

def release( pointer )
  synchronize { Curl.easy_cleanup pointer }
end

.synchronize(&block) ⇒ Object


10
11
12
# File 'lib/ethon/easy/operations.rb', line 10

def synchronize( &block )
  (@mutex ||= Mutex.new).synchronize( &block )
end