Incorrect use of std::atomic
Former-commit-id: 5dc84850addff084c95f9280718fcb1d6fee3b82
This commit is contained in:
parent
2c28a3f3d7
commit
950cda8ea5
@ -1780,7 +1780,7 @@ void updateCachedTime(int update_daylight_info) {
|
|||||||
t /= 1000;
|
t /= 1000;
|
||||||
__atomic_store(&g_pserver->mstime, &t, __ATOMIC_RELAXED);
|
__atomic_store(&g_pserver->mstime, &t, __ATOMIC_RELAXED);
|
||||||
t /= 1000;
|
t /= 1000;
|
||||||
__atomic_store(&g_pserver->unixtime, &t, __ATOMIC_RELAXED);
|
g_pserver->unixtime = t;
|
||||||
|
|
||||||
/* To get information about daylight saving time, we need to call
|
/* To get information about daylight saving time, we need to call
|
||||||
* localtime_r and cache the result. However calling localtime_r in this
|
* localtime_r and cache the result. However calling localtime_r in this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user