mailing list of musl libc
 help / color / mirror / code / Atom feed
* MSB in rwlock?
@ 2019-01-22 20:28 Markus Wichmann
  2019-01-23  0:22 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Wichmann @ 2019-01-22 20:28 UTC (permalink / raw)
  To: musl

Hi all,

would someone kindly explain what the highest bit in the rwlock value is
doing? As far as I can see, it is set whenever one of the locking
functions enters a contended case, and cleared when the unlock function
sets the lock to 0 (so when the last reader or the writer unlocks the
rwlock). But at any other point the bit is masked out, AFAICS. So what
is it doing? Or is it just a vestige that can be done away with?

Ciao,
Markus


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-23  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-22 20:28 MSB in rwlock? Markus Wichmann
2019-01-23  0:22 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).