If you look for "condition variables" for event notification,
you'll find relevant material, such as this paperĀ https://www.cs.berkeley.edu/~brewer/cs262/Mesa.pdf
which has a few references in it too. There's a little evolutionary history of them somewhere.

On 24 March 2016 at 19:56, Giacomo Tesio <giacomo@tesio.it> wrote:

Hi, I'm a bit ignorant but I cannot recognise the algorithms in qlock.c.

Where I can find more documentation about them? Any paper I can read?

For example the rsleep/rwakeup always look a bit magic in its coupling with qlocks. I'd really like to know more about these algorithms, but given their use of rendezvous I can't find anything related.

Can you provide me some references?

Giacomo