Changes between Initial Version and Version 1 of Ticket #2133
- Timestamp:
- Jun 29, 2007, 1:08:33 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2133
- Property Summary Use of static var in MapScript labelCacheObj.nextLabel → Use of static var in MapScript mapObj.nextLabel
-
Ticket #2133 – Description
initial v1 1 While working on the implementation of label priority, I noticed that the labelCacheObj.nextLabel() method uses a static variable to iteratorover labels. This is not safe for multi-thread environments, and does not allow using the function more than once per instance of label cache.1 While working on the implementation of label priority, I noticed that the mapObj.nextLabel() method uses a static variable to iterate over labels. This is not safe for multi-thread environments, and does not allow using the function more than once per instance of label cache. 2 2 3 3 The same code is present in mapscript/swiginc/map.i and in mapscript/php3/mapscript_i.c