libspl: Implement LWP rwlock interface

This implements a subset of the LWP rwlock interface by wrapping the
equivalent POSIX thread interface. It is a superset of the features
needed by ztest.

The missing bits are {,_}rw_read_held() and {,_}rw_write_held().

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1970
This commit is contained in:
Richard Yao
2014-04-30 13:12:27 -04:00
committed by Brian Behlendorf
parent c6e924fea8
commit 3af3df905f
2 changed files with 52 additions and 0 deletions
+1
View File
@@ -90,6 +90,7 @@
#include <string.h>
#include <strings.h>
#include <pthread.h>
#include <synch.h>
#include <assert.h>
#include <alloca.h>
#include <umem.h>