prevent a context switch withing the after-function with
disable/enable-interrupts
This commit is contained in:
parent
2e6d5657a4
commit
5f0df79c0f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue