[Top][All Lists]

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

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

From: Jörg F. Wittenberger
Subject: Re: [Chicken-users] trying to gracefully stop threads
Date: Mon, 09 Dec 2013 10:38:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

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:

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?

My goal is just to signal t1 so it will stop and allow the primary thread to exit gracefully.

Any chance anyone can point me in the right direction?

Michael Greenly

Chicken-users mailing list

reply via email to

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