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