From ea44e43f07f4ca9a6c24913abb2dd942f5ee932d Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 24 Aug 2006 06:31:11 +0000 Subject: [PATCH] mention that multi-processor support is on by default. 2006-08-24 Sven Neumann * INSTALL: mention that multi-processor support is on by default. * app/base/tile-cache.c: fixed compilation if multi-processor support is disabled (bug #352609). --- ChangeLog | 7 +++++++ INSTALL | 8 ++------ app/base/tile-cache.c | 27 ++++++++++++++++----------- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index e865b77c17..8ca5706120 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-08-24 Sven Neumann + + * INSTALL: mention that multi-processor support is on by default. + + * app/base/tile-cache.c: fixed compilation if multi-processor + support is disabled (bug #352609). + 2006-08-23 Bill Skaggs * app/tools/tools-enums.h diff --git a/INSTALL b/INSTALL index 525f1428be..6b88b932e4 100644 --- a/INSTALL +++ b/INSTALL @@ -168,12 +168,8 @@ These are: their API references so that the libgimp reference can link to them. - --enable-mp. This options control whether to build GIMP with or without - support for multiple processors. This option is off by default. If - you do have multiply processors and run GIMP with an OS supporting - them you will like to enable this features to use all of your - horsepower. Enabling it on singleprocessor systems won't harm but - cause a bit processing overhead. + --disable-mp. This option allows you to disable support for multiple + processors. It is enabled by default. --with-sendmail=[PATH]. This option is used to tell GIMP where to find the sendmail command. Normally this options don't have to be used diff --git a/app/base/tile-cache.c b/app/base/tile-cache.c index e42fdad3fa..47f2e1abad 100644 --- a/app/base/tile-cache.c +++ b/app/base/tile-cache.c @@ -64,18 +64,10 @@ static TileList dirty_list = { NULL, NULL }; #ifdef ENABLE_MP -#ifdef ENABLE_THREADED_TILE_SWAPPER -static GThread *preswap_thread = NULL; -static GMutex *dirty_mutex = NULL; -static GCond *dirty_signal = NULL; -#else -static guint idle_swapper = 0; -#endif +static GStaticMutex tile_cache_mutex = G_STATIC_MUTEX_INIT; -static GStaticMutex tile_cache_mutex = G_STATIC_MUTEX_INIT; - -#define CACHE_LOCK g_static_mutex_lock (&tile_cache_mutex) -#define CACHE_UNLOCK g_static_mutex_unlock (&tile_cache_mutex) +#define CACHE_LOCK g_static_mutex_lock (&tile_cache_mutex) +#define CACHE_UNLOCK g_static_mutex_unlock (&tile_cache_mutex) #else @@ -85,6 +77,19 @@ static GStaticMutex tile_cache_mutex = G_STATIC_MUTEX_INIT; #endif +#ifdef ENABLE_THREADED_TILE_SWAPPER + +static GThread *preswap_thread = NULL; +static GMutex *dirty_mutex = NULL; +static GCond *dirty_signal = NULL; + +#else + +static guint idle_swapper = 0; + +#endif + + void tile_cache_init (gulong tile_cache_size) {