On Mon, 24 Sep 2012 14:43:03 +0000, Matt McCormick said: >The type of the modified time is limited by the platform-specific >functions to perform the atomic operation that increments it. We are >limited to the type used in the platform specific functions, and I do >not think what you are proposing will work (although I would be happy >to be proved wrong :-) ).
Indeed, it may be tricky for that reason. Also, on OS X, the OSAtomicIncrement64() function is available on 64 bit PowerPC, but not 32 bit PowerPC... OSAtomicIncrement32 is available on both, which is what is used now. We could always fall back to the slow mutex on PPC32 I guess. One portable thing that could be done is to use C++11's new atomic stuff, and fall back to the platform-specific code only if the compiler does not support C++11. Few compilers support it yet, but it's more future-proof. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng [email protected] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://kitware.com/products/protraining.php Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://www.itk.org/mailman/listinfo/insight-developers
