File: misc.rst

package info (click to toggle)
llvmlite 0.44.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,736 kB
  • sloc: python: 12,771; cpp: 3,146; sh: 185; makefile: 183
file content (15 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
====
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()``.