Misc

llvmlite.binding.ffi.register_lock_callback(acq_fn, rel_fn)

Register callback functions for lock acquire and release. acq_fn and exit_fn are callables that take no arguments.

llvmlite.binding.ffi.unregister_lock_callback(acq_fn, rel_fn)

Remove the registered callback functions for lock acquire and release. The arguments are the same as used in register_lock_callback().