[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Move "sleep" into chicken.time and expose "pro

From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Move "sleep" into chicken.time and expose "process-sleep" from chicken.time.posix
Date: Sun, 21 Jan 2018 13:35:30 +0100
User-agent: NeoMutt/20170113 (1.7.2)

Hi all,

This is one procedure for which we hadn't decided on a home yet.
The attached patch moves it into "chicken.time", and the new
"process-sleep" (which is guaranteed to sleep the entire process
rather than just the current threda) was not "officially" exported
yet either, so that's exported by "chicken.time.posix" now.

We could also move "sleep" into chicken.base or chicken.process.

It's not used so often, so that's why I didn't move it into
base, which is already quite crowded (and besides, then it would
have process-sleep elsewhere which is confusing).  chicken.process
seems to mostly deal with creating new processes or communicating
with existing other processes.  Of course, "sleep" affects the process,
but I think time is a slightly nicer place for it.

Let me know what y'all think!


Attachment: 0001-Move-sleep-into-chicken.time-and-add-process-sleep-t.patch
Description: Text Data

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]