Menu

#38 pthread_rwlock_wrlock() may deadlock

open
elva fu
Threads (18)
5
2006-09-14
2006-09-14
No

conformance/interface/pthread_rwlock_wrlock/3-1.c checks whether pthread_rwlock_wrlock() called twice returns EDEADLK or succeeds. But posix says « The calling thread may deadlock if at the time the call is made it holds the read-write lock (whether a read or write lock). ». So a deadlock (not EDEADLK) should be allowed too.

Discussion


Log in to post a comment.