Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
numba
GitHub Repository: numba/llvmlite
Path: blob/main/docs/source/user-guide/binding/misc.rst
1154 views
====
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()``.