Time: use locks again
authorest31 <MTest31@outlook.com>
Wed, 4 Nov 2015 02:07:32 +0000 (03:07 +0100)
committerest31 <MTest31@outlook.com>
Wed, 4 Nov 2015 02:44:09 +0000 (03:44 +0100)
commit8f03995604164c891cacb41c83ff4d6e73a8535f
tree0e03e91c9ef2214122e73aab5411f529d1d0f699
parentf9b09368f063cdace93a042d5bdd45987c084d94
Time: use locks again

The Atomic implementation was only partially correct, and was very complex.
Use locks for sake of simplicity, following KISS principle.
Only remaining atomic operation use is time of day speed, because that
really is only read + written.

Also fixes a bug with m_time_conversion_skew only being decremented, never
incremented (Regresion from previous commit).

atomic.h changes:
* Add GenericAtomic<T> class for non-integral types like floats.

* Remove some last remainders from atomic.h of the volatile use.
src/environment.cpp
src/environment.h
src/threading/atomic.h