mirror of
https://github.com/python/cpython.git
synced 2026-04-13 23:31:02 +00:00
19 lines
690 B
Text
19 lines
690 B
Text
# Thread safety annotations for C API functions.
|
|
#
|
|
# Each line has the form:
|
|
# function_name : level
|
|
#
|
|
# Where level is one of:
|
|
# incompatible -- not safe even with external locking
|
|
# compatible -- safe if the caller serializes all access with external locks
|
|
# distinct -- safe on distinct objects without external synchronization
|
|
# shared -- safe for concurrent use on the same object
|
|
# atomic -- atomic
|
|
#
|
|
# Lines beginning with '#' are ignored.
|
|
# The function name must match the C domain identifier used in the documentation.
|
|
|
|
# Synchronization primitives (Doc/c-api/synchronization.rst)
|
|
PyMutex_Lock:shared:
|
|
PyMutex_Unlock:shared:
|
|
PyMutex_IsLocked:atomic:
|