diff options
author | est31 <MTest31@outlook.com> | 2015-11-04 03:07:32 +0100 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-11-04 03:44:09 +0100 |
commit | 8f03995604164c891cacb41c83ff4d6e73a8535f (patch) | |
tree | 0e03e91c9ef2214122e73aab5411f529d1d0f699 /src/camera.h | |
parent | f9b09368f063cdace93a042d5bdd45987c084d94 (diff) | |
download | minetest-8f03995604164c891cacb41c83ff4d6e73a8535f.tar.gz minetest-8f03995604164c891cacb41c83ff4d6e73a8535f.tar.bz2 minetest-8f03995604164c891cacb41c83ff4d6e73a8535f.zip |
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.
Diffstat (limited to 'src/camera.h')
0 files changed, 0 insertions, 0 deletions