Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 446 Bytes

misc.rst

File metadata and controls

15 lines (10 loc) · 446 Bytes

Misc

.. currentmodule:: llvmlite.binding.ffi

.. function:: 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.

.. function:: 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()``.