Subject: Re: timer in lisp
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 03 Feb 2005 04:54:36 -0600
Newsgroups: comp.lang.lisp
Message-ID: <QcmdnTtflfFxn5_fRVn-iw@speakeasy.net>
Raymond Toy  <raymond.toy@ericsson.com> wrote:
+---------------
|Fred Gilham <gilham@snapdragon.csl.sri.com> writes:
| Fred> But in the X86 implementations of CMUCL (which have multiprocessing)
| Fred> you can use Unix timer facilities.  You can set a timer interrupt and
| Fred> have your handler set a flag and your process check the flag to know
| Fred> when to stop.
| 
| As I understand it, CMUCL is not interrupt-safe so these periodic
| interrupts can cause weird things to happen.  A single interrupt is
| probably ok, though.
+---------------

And if all you do in it is set or clear an "MP:"-provided software mutex
[so some other thread will run the next time the "MP:" libarary is entered],
then it's probably o.k...


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607