[Kst] extragear/graphics/kst
George Staikos
staikos at kde.org
Sun Nov 5 21:18:58 CET 2006
SVN commit 602371 by staikos:
multithreaded update loop is ready to be built now. use the configure
parameter --with-multicore-update
Comments appreciated, and note that there might be some races lurking.
Also you can tune the number of threads in updatethread-multicore.cpp at the
top. This may be made smarter later.
M +6 -0 configure.in.in
M +5 -0 src/libkstapp/updatethread.cpp
M +5 -0 src/libkstapp/updatethread.h
--- trunk/extragear/graphics/kst/configure.in.in #602370:602371
@@ -322,6 +322,12 @@
])
AM_CONFIG_HEADER([kst/src/libkst/ksttimers.h])
+AC_ARG_WITH(multicore-update,
+ AC_HELP_STRING([--with-multicore-update],[use a multithreaded update subsystem]),
+ [
+ AC_DEFINE(MULTICORE_UPDATES, 1, [Define if we should use multicore updates])
+ ])
+
AC_ARG_WITH(one-lock,
AC_HELP_STRING([--with-one-lock],[build an effectively single-threaded Kst]),
[
--- trunk/extragear/graphics/kst/src/libkstapp/updatethread.cpp #602370:602371
@@ -17,6 +17,10 @@
#include "updatethread.h"
+#ifdef MULTICORE_UPDATES
+
+#include "updatethread-multicore.cpp"
+#else
#include <assert.h>
#include <qdeepcopy.h>
@@ -306,4 +310,5 @@
return _paused;
}
+#endif
// vim: ts=2 sw=2 et
--- trunk/extragear/graphics/kst/src/libkstapp/updatethread.h #602370:602371
@@ -15,6 +15,10 @@
* *
***************************************************************************/
+#include <config.h>
+#ifdef MULTICORE_UPDATES
+#include "updatethread-multicore.h"
+#else
#ifndef UPDATETHREAD_H
#define UPDATETHREAD_H
@@ -57,4 +61,5 @@
#endif
+#endif
// vim: ts=2 sw=2 et
More information about the Kst
mailing list