mirror of
https://github.com/python/cpython.git
synced 2025-08-26 11:45:20 +00:00
GH-100892: consolidate HEAD_LOCK/HEAD_UNLOCK
macros (#100953)
This commit is contained in:
parent
206f05a46b
commit
f6307d4416
4 changed files with 6 additions and 14 deletions
|
@ -839,11 +839,6 @@ local_traverse(localobject *self, visitproc visit, void *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#define HEAD_LOCK(runtime) \
|
||||
PyThread_acquire_lock((runtime)->interpreters.mutex, WAIT_LOCK)
|
||||
#define HEAD_UNLOCK(runtime) \
|
||||
PyThread_release_lock((runtime)->interpreters.mutex)
|
||||
|
||||
static int
|
||||
local_clear(localobject *self)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue