When Finhibit_yield is not-nil, allow access to any buffer from the
commit18e79e60b4633323935c7c692e5a125fa46ef9f0
authorGiuseppe Scrivano <gscrivano@gnu.org>
Fri, 18 Sep 2009 08:40:21 +0000 (18 10:40 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Fri, 18 Sep 2009 08:40:21 +0000 (18 10:40 +0200)
tree1ecaf57d250271ac56061295cc125f0c2e3c372c
parent0b3e5d2127118bcfa64afc31053cc91ed7b36308
When Finhibit_yield is not-nil, allow access to any buffer from the

current thread.  It is needed to avoid deadlocks or undesidered
threads switch.

This mechanism is implemented storing the previous buffer's owner and
restore it when the current thread releases the buffer.
src/buffer.c
src/buffer.h
src/thread.c
src/thread.h