loolwsd/LOOLSession.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4c7b015b68f6942d994d3351c1594fd29580dad1 Author: Ashod Nakashian <[email protected]> Date: Tue Sep 27 21:17:55 2016 -0400 loolwsd: use atomics for potentially shared flags Change-Id: I36e34159cca24e2c3d99eaf4d4f36f3e008cb6ce Reviewed-on: https://gerrit.libreoffice.org/29334 Reviewed-by: Ashod Nakashian <[email protected]> Tested-by: Ashod Nakashian <[email protected]> diff --git a/loolwsd/LOOLSession.hpp b/loolwsd/LOOLSession.hpp index 79b4e1a..b745226 100644 --- a/loolwsd/LOOLSession.hpp +++ b/loolwsd/LOOLSession.hpp @@ -146,9 +146,9 @@ private: std::shared_ptr<Poco::Net::WebSocket> _ws; /// True if we have been disconnected. - bool _disconnected; + std::atomic<bool> _disconnected; /// True if the user is active, otherwise false (switched tabs). - bool _isActive; + std::atomic<bool> _isActive; std::chrono::steady_clock::time_point _lastActivityTime; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
