#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):
Tested on x86_64 only. I tried to implement again the local pthread_rwlock
with mutexes. Might not be the best solution, the old one used
block_thread and unblock_thread syscalls. Please review.
Another problem is the size of the struct _pthread_rwlock, it stays the
same on x86_64 (40 bytes), not on x86 (was 32 bytes). I suppose we can
reduce to only use 32 bytes on x86 and let 8 bytes unused on x86_64. Can
this size actually change? Or are we stucked with these sizes for
compatibility reasons?
--
Ticket URL: <https://dev.haiku-os.org/ticket/8798#comment:12>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.