diff options
| author | Po Lu <luangruo@yahoo.com> | 2023-06-09 14:03:50 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2023-06-09 14:03:50 +0800 |
| commit | c321eea5af535d102c5e1d2d7e95029ce6fee427 (patch) | |
| tree | efd19f5c11d2bf426c196ab97403aa1d58e223b9 /java/org/gnu/emacs/EmacsNative.java | |
| parent | 7f073df53374bc1b96ac07e949af11b8af06b94b (diff) | |
Block profiling signals in the Android UI thread
* java/org/gnu/emacs/EmacsNative.java (EmacsNative): New
function `setupSystemThread'.
* java/org/gnu/emacs/EmacsService.java (onCreate): Block all
signals except for SIGBUS and SIGSEGV in the UI thread.
* src/android.c (setupSystemThread): New function.
Diffstat (limited to 'java/org/gnu/emacs/EmacsNative.java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsNative.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/org/gnu/emacs/EmacsNative.java b/java/org/gnu/emacs/EmacsNative.java index cb89cf6808a..2fcbf8b94ef 100644 --- a/java/org/gnu/emacs/EmacsNative.java +++ b/java/org/gnu/emacs/EmacsNative.java @@ -188,6 +188,10 @@ public final class EmacsNative KEYCODE_VOLUME_MUTE should be forwarded to Emacs. */ public static native boolean shouldForwardMultimediaButtons (); + /* Initialize the current thread, by blocking signals that do not + interest it. */ + public static native void setupSystemThread (); + /* Input connection functions. These mostly correspond to their |
