设备上下线:多线程

Signed-off-by: wuqi0105 <wuqi85@huawei.com>
This commit is contained in:
wuqi0105
2022-03-01 17:19:12 +08:00
parent b236f20377
commit 2cff93ed13
@@ -50,7 +50,7 @@ INodeStateCb SoftbusConnector::softbusNodeStateCb_ = {
.onNodeBasicInfoChanged = SoftbusConnector::OnSoftbusDeviceInfoChanged};
void DeviceOnLine(std::map<std::string, std::shared_ptr<ISoftbusStateCallback>> stateCallbackMap,
DmDeviceInfo deviceInfo)
DmDeviceInfo deviceInfo)
{
LOGI("Device on line start");
std::mutex lockDeviceOnLine;
@@ -62,7 +62,7 @@ void DeviceOnLine(std::map<std::string, std::shared_ptr<ISoftbusStateCallback>>
}
void DeviceOffLine(std::map<std::string, std::shared_ptr<ISoftbusStateCallback>> stateCallbackMap,
DmDeviceInfo deviceInfo)
DmDeviceInfo deviceInfo)
{
LOGI("Device off line start");
std::mutex lockDeviceOffLine;