[slime-devel] CVS slime

Helmut Eller heller at common-lisp.net
Mon Jun 20 07:02:40 UTC 2011


* Nikodemus Siivola [2011-06-19 17:04] writes:

> On 19 June 2011 18:24, Helmut Eller <heller at common-lisp.net> wrote:
>
>> Is it necessary to run this in the control-thread? Can't you just create
>> a separate thread for this?
>
> Not /necessary/, but since control-thread will anyways be the one
> responsible for sending the update, adding a new per-connnection
> thread just for this is seemed like shooting a fly with a cannon.

The control-thread is not the place to do unimportant things.

> I can do that though. Are there any other housekeeping tasks that
> could/should be delegated to such a thread?

Do one task per thread. 

Alternatively you also copy the cache, update the copy, and finally
store the copy with a single setf into the shared location.  That would
be thread safe enough.

Helmut





More information about the slime-devel mailing list