| # 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: |