2024-10-02 22:15:59 +04:00

14 lines
339 B
Cython

cdef extern from "mutex.h" nogil:
ctypedef struct mutex_t:
pass
cdef mutex_t* mutex_allocate()
cdef void mutex_dallocate(mutex_t*)
cdef int mutex_lock(mutex_t*)
cdef int mutex_unlock(mutex_t*)
cdef extern from "getpid_compat.h":
int getpid()
cdef extern from "ipcmaxlen.h":
int get_ipc_path_max_len()