Ctypes, pthreads and pthread_mutex_t
gagsl-py2 at yahoo.com.ar
Mon Jun 29 23:58:45 CEST 2009
En Mon, 29 Jun 2009 13:19:31 -0300, Doug <dchimento at gmail.com> escribió:
> Has any converted the structure pthread_mutex_t <bits/wordsize.h> to
> a ctypes structure class ?
> I looking at some C code that is using pthreads and need to translate
> pthreads_mutex_t structure into python (via ctypes)
I think the pthread_mutex_t type is intended to be "opaque" to application
code. You should not mess with its contents; the only thing one must know
is its size (and only if one wants to allocate it from Python). For the
most part, it's like a void* pointer.
More information about the Python-list