mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-18 17:01:01 -08:00
Add extra thread-related checking
* java/org/gnu/emacs/EmacsService.java (EmacsService) (checkEmacsThread): New function. (fillPolygon, drawRectangle, drawLine, drawPoint, copyArea) (clearArea): * java/org/gnu/emacs/EmacsThread.java (EmacsThread): * java/org/gnu/emacs/EmacsView.java (EmacsView, swapBuffers): Call where appropriate.
This commit is contained in:
parent
d33bf0a0af
commit
327d2d0131
3 changed files with 36 additions and 1 deletions
|
|
@ -338,6 +338,7 @@ public final class EmacsView extends ViewGroup
|
|||
public void
|
||||
damageRect (Rect damageRect)
|
||||
{
|
||||
EmacsService.checkEmacsThread ();
|
||||
damageRegion.union (damageRect);
|
||||
}
|
||||
|
||||
|
|
@ -351,6 +352,10 @@ public final class EmacsView extends ViewGroup
|
|||
Rect damageRect;
|
||||
Bitmap bitmap;
|
||||
|
||||
/* Make sure this function is called only from the Emacs
|
||||
thread. */
|
||||
EmacsService.checkEmacsThread ();
|
||||
|
||||
damageRect = null;
|
||||
|
||||
/* Now see if there is a damage region. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue