[mapserver-commits] r12187 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:05:26 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:05:26 -0700 (Fri, 26 Aug 2011)
New Revision: 12187
Modified:
trunk/mapserver/mapcache/src/mod_geocache.c
Log:
remove srs, size, resolutions and extent from the <tileset> tag, and replace those by a predefined <grid> tag.
there are two predefined grids: WGS84 and google, see docs
thomas.bonfort | 2010-12-21 17:22:01 +0100 (Tue, 21 Dec 2010)
Modified: trunk/mapserver/mapcache/src/mod_geocache.c
===================================================================
--- trunk/mapserver/mapcache/src/mod_geocache.c 2011-08-26 11:05:22 UTC (rev 12186)
+++ trunk/mapserver/mapcache/src/mod_geocache.c 2011-08-26 11:05:26 UTC (rev 12187)
@@ -25,6 +25,7 @@
#include <apr_time.h>
#include <http_log.h>
#include "geocache.h"
+#include <unistd.h>
#ifdef AP_NEED_SET_MUTEX_PERMS
#include "unixd.h"
@@ -243,6 +244,9 @@
apr_status_t rc;
geocache_server_cfg* cfg = ap_get_module_config(s->module_config, &geocache_module);
apr_lockmech_e lock_type = APR_LOCK_DEFAULT;
+ char *mutex_unique_name = apr_psprintf(p,"%s-%d",geocache_mutex_name,getpid());
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, "mutex name is %s",mutex_unique_name);
+
#ifdef DEBUG
if(!cfg) {
ap_log_error(APLOG_MARK, APLOG_CRIT, 0, s, "configuration not found in server context");
@@ -252,7 +256,7 @@
#if APR_HAS_PROC_PTHREAD_SERIALIZE
lock_type = APR_LOCK_PROC_PTHREAD;
#endif
- rc = apr_global_mutex_create(&cfg->mutex,geocache_mutex_name,lock_type,p);
+ rc = apr_global_mutex_create(&cfg->mutex,mutex_unique_name,lock_type,p);
if(rc != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_CRIT, rc, s, "Could not create global parent mutex %s", geocache_mutex_name);
return rc;
More information about the mapserver-commits
mailing list