class Ethon::Easy::Operations::PointerHelper

Public Class Methods

release( pointer ) click to toggle source
# File lib/ethon/easy/operations.rb, line 14
def release( pointer )
  synchronize { Curl.easy_cleanup pointer }
end
synchronize( &block ) click to toggle source
# File lib/ethon/easy/operations.rb, line 10
def synchronize( &block )
  (@mutex ||= Mutex.new).synchronize( &block )
end