summaryrefslogtreecommitdiff
path: root/src/libstrongswan/utils/mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/utils/mutex.h')
-rw-r--r--src/libstrongswan/utils/mutex.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/mutex.h b/src/libstrongswan/utils/mutex.h
index a0a198024..4cdd96a99 100644
--- a/src/libstrongswan/utils/mutex.h
+++ b/src/libstrongswan/utils/mutex.h
@@ -1,4 +1,5 @@
/*
+ * Copyright (C) 2008 Tobias Brunner
* Copyright (C) 2008 Martin Willi
* Hochschule fuer Technik Rapperswil
*
@@ -11,6 +12,8 @@
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
+ *
+ * $Id: mutex.h 4697 2008-11-25 19:30:02Z tobias $
*/
/**
@@ -99,6 +102,15 @@ struct condvar_t {
bool (*timed_wait)(condvar_t *this, mutex_t *mutex, u_int timeout);
/**
+ * Wait on a condvar until it gets signalized, or times out.
+ *
+ * @param mutex mutex to release while waiting
+ * @param time absolute time until timeout
+ * @return TRUE if timed out, FALSE otherwise
+ */
+ bool (*timed_wait_abs)(condvar_t *this, mutex_t *mutex, timeval_t timeout);
+
+ /**
* Wake up a single thread in a condvar.
*/
void (*signal)(condvar_t *this);