'Converting a pthread_cond_t and/or a pthread_mutex_t to a ctype python object

I need to solve a synchronization problem between processes by utilizing a shared memory that will contain a conditional variable and a mutex. The problem is that the shared memory is being parsed into ctype python objects. Is there any way I can convert those objects into ctype ones?

Any help will be highly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source