[libvirt] [PATCH 3/5] Implement a RWLock primitive for drivers to use
Matthias Bolte
matthias.bolte at googlemail.com
Thu Oct 15 21:24:45 UTC 2009
2009/10/14 Daniel P. Berrange <berrange at redhat.com>:
> This implements a thin wrapper around the pthread_rwlock
> primitives. No impl is provided for Win32 at this time
> since it is rather hard, and none of our code yet requires
> it on Win32
>
> * src/util/threads.h: Add virRWLockInit, virRWLockDestroy,
> virRWLockRead, virRWLockWrite, virRWLockUnlock APIs
> * src/util/threads-pthread.h: define virRWLock struct
> * src/util/threads-pthread.c: Implement RWLock APIs
> ---
> src/libvirt_private.syms | 6 ++++++
> src/util/threads-pthread.c | 30 ++++++++++++++++++++++++++++++
> src/util/threads-pthread.h | 4 ++++
> src/util/threads.h | 10 ++++++++++
> 4 files changed, 50 insertions(+), 0 deletions(-)
>
ACK
Matthias
More information about the libvir-list
mailing list