module FFI::Library

Public Instance Methods

blocking_attach_function(func, args, returns = nil) click to toggle source

Marking a function blocking releases the global Ruby lock. This is required for every function that could invoke a callback (including log handler) in another thread

# File lib/tanker/c_tanker.rb, line 19
def blocking_attach_function(func, args, returns = nil)
  attach_function func, args, returns, blocking: true
end