Changes between Initial Version and Version 1 of Ticket #1463


Ignore:
Timestamp:
Oct 19, 2010, 9:16:49 AM (14 years ago)
Author:
brucedechant
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1463

    • Property Owner set to brucedechant
  • Ticket #1463 – Description

    initial v1  
    1 See the CriticalSection.h in \MgDev\OS\Common\CoordinateSystem:
     1See the !CriticalSection.h in \!MgDev\OS\Common\!CoordinateSystem:
    22
    3 There exists the class CustomCriticalSection and a static variable of that class is defined, too.
     3There exists the class !CustomCriticalSection and a static variable of that class is defined, too.
    44
    5 [static CustomCriticalSection CriticalClass;]
     5{{{
     6static CustomCriticalSection CriticalClass;
     7}}}
    68
    7 This one has internal linkage, however; i.e. each object file this header is compiled into, will have it's own instance of [CriticalClass].
     9This one has internal linkage, however; i.e. each object file this header is compiled into, will have it's own instance of !CriticalClass.
    810
    9 The problem surfaces, when trying to read all available coordinate systems from multiple threads. The Mg API will eventually fail, because CsMap is not thread-safe.
     11The problem surfaces, when trying to read all available coordinate systems from multiple threads. The Mg API will eventually fail, because !CsMap is not thread-safe.
    1012
    11 Originally, only one instance existed only.
     13Originally, only one instance existed.
    1214
    13 The attached patch moves the [CustomCriticalSection CriticalClass] into a separate source file and declares it [extern] in the header.
     15The attached patch moves the !CriticalClass into a separate source file and declares it [extern] in the header.