April 2012
Intermediate to advanced
352 pages
8h
English
The FreeBSD kernel provides the following seven functions for working with mutexes:
#include <sys/param.h> #include <sys/lock.h> #include <sys/mutex.h> void mtx_init(struct mtxmutex, const char
name, const char
type, int
opts); void mtx_lock(struct mtx mutex); void mtx_lock_spin(struct mtx mutex); int mtx_trylock(struct mtx ...