[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] Move "sleep" into chicken.time and expose "pro
[Chicken-hackers] [PATCH] Move "sleep" into chicken.time and expose "process-sleep" from chicken.time.posix
Sun, 21 Jan 2018 13:35:30 +0100
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!
Description: Text Data
Description: PGP signature
- [Chicken-hackers] [PATCH] Move "sleep" into chicken.time and expose "process-sleep" from chicken.time.posix,
Peter Bex <=