summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-20 23:49:35 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-21 00:14:14 +0200
commita46114ec01e8d174a41744f4f1b49905613847dc (patch)
tree9a76d884afc10c276c0b4e3af989d68a9556551b /src/ipcpd/ipcp.h
parent34f96731f5fb8ab8a1f7018366fc28fd041d73e2 (diff)
downloadouroboros-a46114ec01e8d174a41744f4f1b49905613847dc.tar.gz
ouroboros-a46114ec01e8d174a41744f4f1b49905613847dc.zip
lib, irmd, ipcp: robust mutexes
Update to POSIX 200112L to allow use of robust mutexes in the shm_du_map. Removed the implementation of the rw_lock in favor of pthread_rwlock_t. Placeholder for the shm_du_map_sanitize function.
Diffstat (limited to 'src/ipcpd/ipcp.h')
-rw-r--r--src/ipcpd/ipcp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcpd/ipcp.h b/src/ipcpd/ipcp.h
index 63f9677a..1e9e9763 100644
--- a/src/ipcpd/ipcp.h
+++ b/src/ipcpd/ipcp.h
@@ -23,7 +23,8 @@
#ifndef IPCPD_IPCP_H
#define IPCPD_IPCP_H
-#include <ouroboros/rw_lock.h>
+#include <ouroboros/config.h>
+#include <pthread.h>
#include "ipcp-ops.h"
#include "ipcp-data.h"
@@ -41,7 +42,7 @@ struct ipcp {
int irmd_fd;
enum ipcp_state state;
- rw_lock_t state_lock;
+ pthread_rwlock_t state_lock;
};
struct ipcp * ipcp_instance_create();