DragonFly BSD
DragonFly kernel List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Mutex questions


From: Venkatesh Srinivas <me@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 10 Apr 2010 10:51:03 -0400

Hi,

Why are there mtx_spinlock_ex / mtx_spinlock_sh, when spin_lock_rd / spin_lock_wr exist?

Also, if I'm writing new code, why might I want to use lockmgr locks vs mtx_* locks (or vice versa)?

Thanks,
-- vs


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]