// Set S word to the specified value
uint32_t savebits = (oldseq.rw_seq & PTHRW_RWS_SAVEMASK);
newseq.lcntval = _pthread_rwlock_modbits(oldseq.lcntval, updateval,
// Set S word to the specified value
uint32_t savebits = (oldseq.rw_seq & PTHRW_RWS_SAVEMASK);
newseq.lcntval = _pthread_rwlock_modbits(oldseq.lcntval, updateval,
// Clear the S bit and set S to L
newseq.rw_seq &= (PTHRW_BIT_MASK & ~PTH_RWS_SBIT);
newseq.rw_seq |= (oldseq.lcntval & PTHRW_COUNT_MASK);
// Clear the S bit and set S to L
newseq.rw_seq &= (PTHRW_BIT_MASK & ~PTH_RWS_SBIT);
newseq.rw_seq |= (oldseq.lcntval & PTHRW_COUNT_MASK);