prevent a context switch withing the after-function with

disable/enable-interrupts
This commit is contained in:
frese 2003-04-26 12:01:24 +00:00
parent 2e6d5657a4
commit 5f0df79c0f
1 changed files with 2 additions and 0 deletions

View File

@ -55,7 +55,9 @@ s48_value scx_general_after_function_binding = S48_FALSE;
static int scx_after_function_wrapper(Display* dpy) {
s48_value display = scx_enter_display(dpy);
s48_value fun = S48_SHARED_BINDING_REF(scx_general_after_function_binding);
s48_disable_interruptsB();
s48_call_scheme(fun, 1, display);
s48_enable_interruptsB();
return 0;
}