[libchamplain] Add missing locking for set_tile_size
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain] Add missing locking for set_tile_size
- Date: Sun, 24 Jan 2010 20:08:34 +0000 (UTC)
commit 8d7cb23c1df7948a4e9daea0650930b11a9ec891
Author: Simon Wenner <simon wenner ch>
Date: Mon Jun 29 10:46:17 2009 +0200
Add missing locking for set_tile_size
champlain/champlain-memphis-map-source.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-memphis-map-source.c b/champlain/champlain-memphis-map-source.c
index ea8fc27..c3af292 100644
--- a/champlain/champlain-memphis-map-source.c
+++ b/champlain/champlain-memphis-map-source.c
@@ -328,7 +328,9 @@ champlain_memphis_map_source_set_tile_size (ChamplainMemphisMapSource *self,
ChamplainMemphisMapSourcePrivate *priv = GET_PRIVATE(self);
+ g_static_rw_lock_writer_lock (&MemphisLock);
memphis_renderer_set_resolution (priv->renderer, size);
+ g_static_rw_lock_writer_unlock (&MemphisLock);
g_object_set (G_OBJECT (self), "tile-size", size, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]