#8798: PTHREAD_RWLOCK_INITIALIZER macro not defined
----------------------------+----------------------------
Reporter: cian | Owner: nobody
Type: bug | Status: reopened
Priority: normal | Milestone: Unscheduled
Component: System/POSIX | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
----------------------------+----------------------------
Comment (by bonefish):
Unfortunately I don't have the time to thoroughly read the patch. From a
quick glance: Not using a common waiting queue for readers and writers
means that you can't treat both fairly. In this case it looks like writers
can overtake waiting readers. As I wrote on the commit mailing list, I'd
just replace the semaphore by a mutex and leave the implementation
otherwise unchanged.
--
Ticket URL: <https://dev.haiku-os.org/ticket/8798#comment:15>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.