You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
349 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":
cdef int getpid()
cdef extern from "ipcmaxlen.h":
cdef int get_ipc_path_max_len()