Merge "wifi(implementation): Make a boolean flag atomic"

This commit is contained in:
Treehugger Robot
2017-03-15 01:13:46 +00:00
committed by Gerrit Code Review

View File

@@ -289,7 +289,7 @@ class WifiLegacyHal {
// Opaque handle to be used for all wlan0 interface specific operations.
wifi_interface_handle wlan_interface_handle_;
// Flag to indicate if we have initiated the cleanup of legacy HAL.
bool awaiting_event_loop_termination_;
std::atomic<bool> awaiting_event_loop_termination_;
// Flag to indicate if the legacy HAL has been started.
bool is_started_;
wifi_system::InterfaceTool iface_tool_;