chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] thread-wait-for-i/o! and thread-terminate!


From: cowan
Subject: Re: [Chicken-users] thread-wait-for-i/o! and thread-terminate!
Date: Tue, 20 Jan 2015 17:41:45 -0500
User-agent: SquirrelMail/1.4.21

Chris Vine:

> Does anyone know if thread-terminate! can safely be called on a
> thread which is blocking on thread-wait-for-i/o!, without putting
> chicken's internals into an inconsistent state.

Calling thread-terminate! in any circumstances may put your code
into a bad state, because it unlocks mutexes without letting the
user data structures that those mutexes protect be unwound.
In general, terminating threads from outside is always a Bad Thing.

-- 
John Cowan          http://www.ccil.org/~cowan        address@hidden
Kill Gorgun!  Kill orc-folk!  No other words please Wild Men.  Drive away
bad air and darkness with bright iron!   --Ghan-buri-Ghan





reply via email to

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