runtime/ffi.scm: Avoid swapping threads during callbacks.
authorMatt Birkholz <matt@birchwood-abbey.net>
Fri, 29 Apr 2016 18:38:21 +0000 (11:38 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Fri, 29 Apr 2016 18:38:21 +0000 (11:38 -0700)
commit37d9317b8490fcfbdd8f298d70cf41aa4e80d0d6
tree5344f3fdee913d34667294b21b1541fb80994922
parent8ae1ec2f2ae2cfda1ecdd250e67f8542fd6f321b
runtime/ffi.scm: Avoid swapping threads during callbacks.

Block thread events during callouts.

Replace the callback error restart with an error handler that just
returns 0 from the callback.  Until the debugger can run without-
interrupts (blocking for console IO instead of suspending for an IO
thread event) it may not run during a callback.
src/runtime/ffi.scm