Mutex questions

看板DFBSD_kernel作者時間16年前 (2010/04/11 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
--001636c932cabeb7000483e30b49 Content-Type: text/plain; charset=UTF-8 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 --001636c932cabeb7000483e30b49 Content-Type: text/html; charset=UTF-8 Hi,<div><br></div><div>Why are there mtx_spinlock_ex / mtx_spinlock_sh, when spin_lock_rd / spin_lock_wr exist?</div><div><br></div><div>Also, if I&#39;m writing new code, why might I want to use lockmgr locks vs mtx_* locks (or vice versa)?</div> <div><br></div><div>Thanks,<br clear="all">-- vs<br> </div> --001636c932cabeb7000483e30b49--
文章代碼(AID): #1BmBps0x (DFBSD_kernel)