diff gnv-artifacts/ChangeLog @ 775:eedad2ddad14

Removed race-condition while shapefile creation (issue164). gnv-artifacts/trunk@841 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 26 Mar 2010 15:20:32 +0000
parents d0a39efbfd96
children 8009961db1cb
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Fri Mar 26 10:06:36 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Fri Mar 26 15:20:32 2010 +0000
@@ -1,3 +1,23 @@
+2010-03-26  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue164
+
+	* src/main/java/de/intevation/gnv/utils/ExclusiveExec.java: New. This class
+	  can be used to synchronize threads with a given key. To use this
+	  synchronization, you just have to do something like the following:
+		  UniqueKey token = ExclusiveExec.INSTANCE.acquire(key);
+		  // your code to be synchronized
+		  ExclusiveExec.INSTANCE.release(token);
+	  A thread needs to wait if there is already a thread with the given key 
+	  which has acquired a token. Threads with a different key don't need to 
+	  wait for this thread.
+
+	* src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java:
+	  Synchronize shapefile writing of artifacts which have the same uuid.
+
+	* src/main/java/de/intevation/gnv/utils/FileUtils.java: Added a function to
+	  delete the content of a directory.
+
 2010-03-26  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue211 (Applied patch)

http://dive4elements.wald.intevation.org