search for: rw_write_held

Displaying 2 results from an estimated 2 matches for "rw_write_held".

2006 Jun 02
5
Read-write locks in libzpool
...rs tried to lock it. However, RW_LOCK_HELD() is being applied to "rwlp" instead of "&rwlp->rw_lock", which could explain why it''s not failing. Am I understanding this correctly? Unfortunately POSIX threads don''t have an equivalent of rw_lock_held(), rw_write_held(), mutex_held(), ..., so I really have to understand this in order to somehow emulate their behavior. Thanks!
2007 Nov 24
19
R/W lock portability issue
Hi, I am having a problem porting Solaris R/W lock functionality to Linux. The problem is that RW_LOCK_HELD() doesn''t have an equivalent function in pthreads. This was not a problem before because RW_LOCK_HELD() was only used in ASSERT statements. In this case, I was able to make it work by making it behave a bit differently (specifically, it would return true if *any* thread was