summaryrefslogtreecommitdiff
path: root/lib/ovs-thread.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-07-22 15:24:36 -0700
committerBen Pfaff <blp@nicira.com>2013-07-25 09:56:01 -0700
commita8e736a8486f177ebca6e570eed392b85392d705 (patch)
treed2a06c53c629ea404aee8d9fada7ad6a6feb537b /lib/ovs-thread.h
parent279fb135892ad0cf2764a220ed8f660dee97c608 (diff)
downloadopenvswitch-a8e736a8486f177ebca6e570eed392b85392d705.tar.gz
ovs-thread: Add wrappers for "destroy" functions too.
Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/ovs-thread.h')
-rw-r--r--lib/ovs-thread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ovs-thread.h b/lib/ovs-thread.h
index b18447d8e..29a8637a5 100644
--- a/lib/ovs-thread.h
+++ b/lib/ovs-thread.h
@@ -58,6 +58,7 @@
* abort on any other error. */
void xpthread_mutex_init(pthread_mutex_t *, pthread_mutexattr_t *);
+void xpthread_mutex_destroy(pthread_mutex_t *);
void xpthread_mutex_lock(pthread_mutex_t *mutex) OVS_ACQUIRES(mutex);
void xpthread_mutex_unlock(pthread_mutex_t *mutex) OVS_RELEASES(mutex);
int xpthread_mutex_trylock(pthread_mutex_t *);
@@ -68,6 +69,7 @@ void xpthread_mutexattr_settype(pthread_mutexattr_t *, int type);
void xpthread_mutexattr_gettype(pthread_mutexattr_t *, int *typep);
void xpthread_rwlock_init(pthread_rwlock_t *, pthread_rwlockattr_t *);
+void xpthread_rwlock_destroy(pthread_rwlock_t *);
void xpthread_rwlock_rdlock(pthread_rwlock_t *rwlock) OVS_ACQUIRES(rwlock);
void xpthread_rwlock_wrlock(pthread_rwlock_t *rwlock) OVS_ACQUIRES(rwlock);
void xpthread_rwlock_unlock(pthread_rwlock_t *rwlock) OVS_RELEASES(rwlock);
@@ -75,6 +77,7 @@ int xpthread_rwlock_tryrdlock(pthread_rwlock_t *);
int xpthread_rwlock_trywrlock(pthread_rwlock_t *);
void xpthread_cond_init(pthread_cond_t *, pthread_condattr_t *);
+void xpthread_cond_destroy(pthread_cond_t *);
void xpthread_cond_signal(pthread_cond_t *);
void xpthread_cond_broadcast(pthread_cond_t *);
void xpthread_cond_wait(pthread_cond_t *, pthread_mutex_t *mutex)