mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
C++11 patchset 3: remove Atomic/GenericAtomic and use std::atomic (#5906)
This commit is contained in:
parent
a6678d6e5a
commit
b3dfe5332c
4 changed files with 11 additions and 149 deletions
|
@ -33,11 +33,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <list>
|
||||
#include <queue>
|
||||
#include <map>
|
||||
#include <atomic>
|
||||
#include "irr_v3d.h"
|
||||
#include "activeobject.h"
|
||||
#include "util/numeric.h"
|
||||
#include "threading/mutex.h"
|
||||
#include "threading/atomic.h"
|
||||
#include "network/networkprotocol.h" // for AccessDeniedCode
|
||||
|
||||
class IGameDef;
|
||||
|
@ -81,7 +81,7 @@ public:
|
|||
IGameDef *getGameDef() { return m_gamedef; }
|
||||
|
||||
protected:
|
||||
GenericAtomic<float> m_time_of_day_speed;
|
||||
std::atomic<float> m_time_of_day_speed;
|
||||
|
||||
/*
|
||||
* Below: values managed by m_time_lock
|
||||
|
@ -98,7 +98,7 @@ protected:
|
|||
u32 m_day_night_ratio_override;
|
||||
// Days from the server start, accounts for time shift
|
||||
// in game (e.g. /time or bed usage)
|
||||
Atomic<u32> m_day_count;
|
||||
std::atomic<u32> m_day_count;
|
||||
/*
|
||||
* Above: values managed by m_time_lock
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue