[slime-devel] Daily ChangeLog diff

Helmut Eller heller at common-lisp.net
Sun May 13 21:06:58 UTC 2012


* Nikodemus Siivola [2012-05-13 19:58] writes:

> On 13 May 2012 19:58, Helmut Eller <heller at common-lisp.net> wrote:
>
>> What should not be used: WITH-DEADLINE or WITH-WORLD-LOCK?  Obviously
>
> WITH-DEADLINE should be used, IMO. I don't quite follow what you
> consider to be the problem with it.

If a timeout occurs in the middle of a non-atomic code sequence, some
heap object can be in a non-consistent state.  E.g. the buffer contents
gets sent to Emacs before resetting the buffer index; if the timeout
occurs before updating the index, some output can be sent twice.

Helmut





More information about the slime-devel mailing list