[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-commit] qemacs haiku.cpp
From: |
Charlie Gordon |
Subject: |
[Qemacs-commit] qemacs haiku.cpp |
Date: |
Thu, 23 Jan 2014 17:01:43 +0000 |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 14/01/23 17:01:43
Modified files:
. : haiku.cpp
Log message:
new atomic calls by Francois Revol
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/haiku.cpp?cvsroot=qemacs&r1=1.6&r2=1.7
Patches:
Index: haiku.cpp
===================================================================
RCS file: /sources/qemacs/qemacs/haiku.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- haiku.cpp 23 Jan 2014 12:56:22 -0000 1.6
+++ haiku.cpp 23 Jan 2014 17:01:43 -0000 1.7
@@ -55,7 +55,7 @@
static int events_wr;
/* count of pending repaints */
-static vint32 repaints = 0;
+static int32 repaints = 0;
//TODO:use double-buffering with a BBitmap
static void haiku_handle_event(void *opaque);
@@ -384,7 +384,7 @@
case _UPDATE_:
// flush queued repaints
- if (atomic_set(&repaints, 0)) {
+ if (atomic_get_and_set(&repaints, 0)) {
ev->expose_event.type = QE_EXPOSE_EVENT;
qe_handle_event(ev);
}