File: misc.rst

package info (click to toggle)
llvmlite 0.46.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,140 kB
  • sloc: python: 13,605; cpp: 3,192; makefile: 185; sh: 168
file content (15 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
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()``.