Re: [Chicken-users] trying to gracefully stop threads

2013-12-10 Thread Christian Kellermann
* Michael Greenly michaelgree...@logic-refinery.com [131207 20:23]: I've been trying to learn how threads work but have become a bit stumped by this example: https://gist.github.com/mgreenly/7847072#file-graceful-scm My assumption is that the thread would be started and recurs until done

Re: [Chicken-users] trying to gracefully stop threads

2013-12-09 Thread Jörg F. Wittenberger
Strange: I can NOT reproduce this problem. Which chicken and which OS are you on? Am 07.12.2013 20:23, schrieb Michael Greenly: I've been trying to learn how threads work but have become a bit stumped by this example: https://gist.github.com/mgreenly/7847072#file-graceful-scm My assumption

Re: [Chicken-users] trying to gracefully stop threads

2013-12-09 Thread Andy Bennett
Hi, I've been trying to learn how threads work but have become a bit stumped by this example: https://gist.github.com/mgreenly/7847072#file-graceful-scm Also, beware bug #1067 when using 'done' like this in compiled code: http://bugs.call-cc.org/ticket/1067 Regards, @ndy --

Re: [Chicken-users] trying to gracefully stop threads

2013-12-09 Thread Andy Bennett
On 07/12/13 19:23, Michael Greenly wrote: I've been trying to learn how threads work but have become a bit stumped by this example: https://gist.github.com/mgreenly/7847072#file-graceful-scm My assumption is that the thread would be started and recurs until done becomes false at which

[Chicken-users] trying to gracefully stop threads

2013-12-07 Thread Michael Greenly
I've been trying to learn how threads work but have become a bit stumped by this example: https://gist.github.com/mgreenly/7847072#file-graceful-scm My assumption is that the thread would be started and recurs until done becomes false at which time that thread would exit cleanly and allow the

Re: [Chicken-users] trying to gracefully stop threads

2013-12-07 Thread Christian Kellermann
Hi Michael, * Michael Greenly michaelgree...@logic-refinery.com [131207 20:23]: My assumption is that the thread would be started and recurs until done becomes false at which time that thread would exit cleanly and allow the join in the primary thread to continue. The 'done' flag only

Re: [Chicken-users] trying to gracefully stop threads

2013-12-07 Thread Christian Kellermann
* Christian Kellermann ck...@pestilenz.org [131207 21:11]: Hi Michael, * Michael Greenly michaelgree...@logic-refinery.com [131207 20:23]: My assumption is that the thread would be started and recurs until done becomes false at which time that thread would exit cleanly and allow the join

Re: [Chicken-users] trying to gracefully stop threads

2013-12-07 Thread Michael Greenly
Fortunately I can't imagine I would ever actual use thread-sleep! like this, rather the thread would be waiting on I/O, so it appears I have no obstacles. Thank you for taking the time to look at it. On Sat, Dec 7, 2013 at 2:16 PM, Christian Kellermann ck...@pestilenz.orgwrote: * Christian