April 2012
Intermediate to advanced
352 pages
8h
English
The FreeBSD kernel provides the following 11 functions for working with rw locks:
#include <sys/param.h> #include <sys/lock.h> #include <sys/rwlock.h> void rw_init(struct rwlock*rw, const char
*name); void rw_init_flags(struct rwlock *rw, const char *name, int
opts); void rw_rlock(struct rwlock *rw); void rw_wlock(struct rwlock *rw); int rw_try_rlock(struct rwlock *rw); int rw_try_wlock(struct rwlock *rw); void ...