Module: FFI::Library
- Defined in:
- lib/tanker/c_tanker/c_lib.rb
Instance Method Summary collapse
-
#blocking_attach_function(func, args, returns = nil) ⇒ Object
Marking a function blocking releases the global Ruby lock.
Instance Method Details
#blocking_attach_function(func, args, returns = nil) ⇒ Object
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
9 10 11 |
# File 'lib/tanker/c_tanker/c_lib.rb', line 9 def blocking_attach_function(func, args, returns = nil) attach_function func, args, returns, blocking: true end |