chicken-users
[Top][All Lists]
Advanced

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

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


From: Andy Bennett
Subject: Re: [Chicken-users] trying to gracefully stop threads
Date: Mon, 09 Dec 2013 14:55:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

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 time that thread would exit cleanly and allow the
> join in the primary thread to continue.
> 
> The 'done' flag only becomes false when INT is signaled and handled
> 
> Instead I get a "Error: uncaught exception: #<condition:
> (join-timeout-exception)>". 
> 
> This implies to me that INT is killing the thread t1 and the primary
> thread raises the join-timeout becuase t1 no longer exists?

With interpreted code (csi) I get the rather bizzare

-----
Error: uncaught exception: #<condition: (join-timeout-exception)>
graceful termination
-----

With compiled code (csc) I get

-----
Error: uncaught exception: #<condition: (join-timeout-exception)>
-----



Regards,
@ndy

-- 
address@hidden
http://www.ashurst.eu.org/
0x7EBA75FF




reply via email to

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