On Fri, Nov 16, 2018, at 11:35 PM, Giacomo Tesio wrote:
> Il giorno ven 16 nov 2018 alle ore 22:39 Ethan Gardener
> <eeke...@fastmail.fm> ha scritto:
> > Please forgive my laziness in not reading the code, but how do you actually 
> > implement sleep?  Does the process read a file guaranteed to block forever, 
> > or what?
> 
> No problem. Actually sleep is very short:
> https://github.com/JehanneOS/jehanne/blob/master/sys/src/lib/c/9sys/sleep.c#L23
> 
> The blocking system call used in sleep is rendezvous that, in Jehanne,
> can never occur at tag ((void*)~0).

A rendevous with nothing! That's neat.

Does C require casts for void pointer?  The casts in the rendevous line make it 
hard to read.

Reply via email to