Refuse to destory rwlock if it is held by other thread. It is a
robustness check and the user should not relies on EBUSY to check
whether it is held by other. Even through POSIX doesn't require it, I
think it still worth to do so.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 78480 Build 75363: arc lint + arc unit
Event Timeline
| lib/libthr/thread/thr_rwlock.c | ||
|---|---|---|
| 135 | What if the current thread owns the lock? Your commit message says 'other threads'. In fact I am not sure what would be an impact of such change on apps. | |