gh-115432: Add critical section variant that handles a NULL object (#115433)
This adds `Py_XBEGIN_CRITICAL_SECTION` and `Py_XEND_CRITICAL_SECTION`, which accept a possibly NULL object as an argument. If the argument is NULL, then nothing is locked or unlocked. Otherwise, they behave like `Py_BEGIN/END_CRITICAL_SECTION`.
S
Sam Gross committed
ad4f909e0e7890e027c4ae7fea74586667242ad3
Parent: b0e5c35
Committed by GitHub <noreply@github.com>
on 2/15/2024, 1:37:54 PM