* Nikodemus Siivola [2012-05-13 19:58] writes:
On 13 May 2012 19:58, Helmut Eller heller@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