Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lib, ipcpd, irmd: Wrap pthread unlocks for cleanup | Dimitri Staessens | 2021-06-23 | 1 | -0/+39 |
This add an ouroboros/pthread.h header that wraps the pthread_..._unlock() functions for cleanup using pthread_cleanup_push() as this casting is not safe (and there were definitely bad casts in the code). The close() function is now also wrapped for cleanup in ouroboros/sockets.h. This allows enabling more compiler checks. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks> |