mirror of
https://github.com/openharmony/distributed_hardware_fwk.git
synced 2026-07-01 20:24:00 -04:00
!101 修改死锁问题(3.2beta1)
Merge pull request !101 from tangfan/OpenHarmony-3.2-Beta1
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <memory>
|
||||
#include <thread>
|
||||
|
||||
#include "anonymous_string.h"
|
||||
#include "constants.h"
|
||||
@@ -84,7 +85,8 @@ void DistributedHardwareManagerFactory::CheckExitSAOrNot()
|
||||
const auto uuid = GetUUIDBySoftBus(networkId);
|
||||
DHLOGI("Send trusted device online, networkId = %s, uuid = %s", GetAnonyString(networkId).c_str(),
|
||||
GetAnonyString(uuid).c_str());
|
||||
SendOnLineEvent(networkId, uuid, deviceInfo.deviceTypeId);
|
||||
std::thread(&DistributedHardwareManagerFactory::SendOnLineEvent, this, networkId, uuid,
|
||||
deviceInfo.deviceTypeId).detach();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user