Changes between Version 13 and Version 14 of FDORfc47


Ignore:
Timestamp:
Jan 15, 2010, 1:01:08 PM (14 years ago)
Author:
gregboone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc47

    v13 v14  
    5656    * Interlocked: 2.314 sec
    5757
     58== Alternate Solution (Jan. 15, 2010) ==
     59
     60In !MapGuide the refcount threading issue is addressed by having the refcounted classes extend from !MgGuardDisposable, which in turn uses a mutex to limit access to the refcount member variable to one thread at a time. While this strategy would work in FDO, an alternate solution will be implemented for the FDO API that avoids the use of a mutex to control thread access. On Linux, atomic calls to atomic_inc() and atomic_dec() will be used to increment and decrement the m_reCount variable. On Windows, the API will use the !InterlockedIncrement and !InterlockedDecrement methods.
    5861
    5962== Test Plan ==