9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ethan Gardener <eekee57@fastmail.fm>
To: 9fans@9fans.net
Subject: Re: [9fans] A heartfelt thanks... :-)
Date: Sat, 17 Nov 2018 17:18:43 +0000	[thread overview]
Message-ID: <1542475123.2676631.1580308920.7D7BC501@webmail.messagingengine.com> (raw)
In-Reply-To: <CAHL7psF+wk3jCfmb48N_TP5FwZrU7U8WpPi+AYOkMrNsMYWEGw@mail.gmail.com>

On Fri, Nov 16, 2018, at 11:35 PM, Giacomo Tesio wrote:
> Il giorno ven 16 nov 2018 alle ore 22:39 Ethan Gardener
> <eekee57@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	other threads:[~2018-11-17 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06  3:17 Giacomo Tesio
2017-01-06  9:34 ` Anthony Martin
2017-01-06 19:42   ` Giacomo Tesio
2018-11-16  2:03   ` Giacomo Tesio
2018-11-16 21:34     ` Ethan Gardener
2018-11-16 23:35       ` Giacomo Tesio
2018-11-17 17:18         ` Ethan Gardener [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1542475123.2676631.1580308920.7D7BC501@webmail.messagingengine.com \
    --to=eekee57@fastmail.fm \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).