#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 korli):
bonefish, yes readers and writers are treated unfairly in the patch, as in
the specification: "The calling thread acquires the read lock if a writer
does not hold the lock and there are no writers blocked on the lock.",
which actually means that writers can overtake waiting readers.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_rwlock_rdlock.html
--
Ticket URL: <https://dev.haiku-os.org/ticket/8798#comment:16>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.