Changes between Initial Version and Version 1 of Ticket #2133


Ignore:
Timestamp:
Jun 29, 2007, 1:08:33 PM (17 years ago)
Author:
dmorissette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2133

    • Property Summary Use of static var in MapScript labelCacheObj.nextLabelUse 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 iterator 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.
     1While 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.
    22
    33The same code is present in mapscript/swiginc/map.i and in mapscript/php3/mapscript_i.c