Commit 50f32415 authored by Stefan Behnel's avatar Stefan Behnel

declare PyThread_acquire_lock and PyThread_release_lock as nogil

parent f07feb45
......@@ -12,14 +12,13 @@ cdef extern from "pythread.h":
PyThread_type_lock PyThread_allocate_lock()
void PyThread_free_lock(PyThread_type_lock)
int PyThread_acquire_lock(PyThread_type_lock, int mode)
int PyThread_acquire_lock(PyThread_type_lock, int mode) nogil
void PyThread_release_lock(PyThread_type_lock) nogil
enum:
enum: # 'mode' in PyThread_acquire_lock
WAIT_LOCK # 1
NOWAIT_LOCK # 0
void PyThread_release_lock(PyThread_type_lock)
size_t PyThread_get_stacksize()
int PyThread_set_stacksize(size_t)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment