[Libreoffice-commits] online.git: loolwsd/LOOLSession.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed Sep 28 03:26:38 UTC 2016


 loolwsd/LOOLSession.hpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4c7b015b68f6942d994d3351c1594fd29580dad1
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
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 <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

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;
 


More information about the Libreoffice-commits mailing list