]> git.eshelyaron.com Git - emacs.git/commit
Simplify code relating to UI thread synchronization
authorPo Lu <luangruo@yahoo.com>
Sat, 30 Dec 2023 02:57:11 +0000 (10:57 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 30 Dec 2023 02:57:11 +0000 (10:57 +0800)
commit94e3d1159334d08fd1d54464bf6173755ba606b7
treeba28a88365830b45015af5fd8a0051367ae42683
parentfe2b68d405251498518b279a17a87f4cbcf82479
Simplify code relating to UI thread synchronization

* java/org/gnu/emacs/EmacsContextMenu.java (display):

* java/org/gnu/emacs/EmacsDialog.java (display):

* java/org/gnu/emacs/EmacsService.java (getEmacsView)
(getLocationOnScreen, getClipboardManager)
(requestDirectoryAccess): Replace manual synchronization within
Runnable objects by usage of FutureTask.
(syncRunnable): Accept FutureTask<V> in place of Runnables, and
obtain and return results from calls to its get method.
java/org/gnu/emacs/EmacsContextMenu.java
java/org/gnu/emacs/EmacsDialog.java
java/org/gnu/emacs/EmacsService.java