aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/threading/condvar.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-12-08 16:53:01 +0100
committerTobias Brunner <tobias@strongswan.org>2009-12-23 17:01:53 +0100
commiteba64cef41f6db11ca751a0f207d0bba052b4093 (patch)
treed0b1098f4c7eba59c86f527660fcc229177dde1d /src/libstrongswan/threading/condvar.c
parentf36143b0baa9ecfa7930780c53a73e74c91577db (diff)
downloadstrongswan-eba64cef41f6db11ca751a0f207d0bba052b4093.tar.bz2
strongswan-eba64cef41f6db11ca751a0f207d0bba052b4093.tar.xz
Separated the public interfaces of the threading primitives.
Diffstat (limited to 'src/libstrongswan/threading/condvar.c')
-rw-r--r--src/libstrongswan/threading/condvar.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/libstrongswan/threading/condvar.c b/src/libstrongswan/threading/condvar.c
index 7ba1c07ec..4c9589081 100644
--- a/src/libstrongswan/threading/condvar.c
+++ b/src/libstrongswan/threading/condvar.c
@@ -20,13 +20,30 @@
#include <time.h>
#include <errno.h>
-#include <threading.h>
#include <library.h>
#include <debug.h>
#include "condvar.h"
#include "mutex.h"
+typedef struct private_condvar_t private_condvar_t;
+
+/**
+ * private data of condvar
+ */
+struct private_condvar_t {
+
+ /**
+ * public functions
+ */
+ condvar_t public;
+
+ /**
+ * wrapped pthread condvar
+ */
+ pthread_cond_t condvar;
+};
+
/**
* Implementation of condvar_t.wait.
*/