mirror of
https://github.com/openharmony/device_manager.git
synced 2026-07-19 18:13:32 -04:00
@@ -19,7 +19,7 @@
|
||||
namespace OHOS {
|
||||
namespace DistributedHardware {
|
||||
#define DEVICE_MANAGER_SERVICE_NAME "dev_mgr_svc"
|
||||
#define MAX_DM_IPC_LEN 4096
|
||||
#define MAX_DM_IPC_LEN 2048
|
||||
|
||||
#define DECLARE_IPC_MODEL(className) \
|
||||
public: \
|
||||
|
||||
@@ -22,3 +22,5 @@ services_path = "${devicemanager_path}/services"
|
||||
innerkits_path = "${devicemanager_path}/interfaces/inner_kits"
|
||||
|
||||
build_flags = [ "-Werror" ]
|
||||
|
||||
dm_ldflags = [ "-lpthread" ]
|
||||
|
||||
@@ -91,6 +91,8 @@ if (defined(ohos_lite)) {
|
||||
|
||||
cflags_cc = build_flags
|
||||
|
||||
ldflags = dm_ldflags
|
||||
|
||||
deps = [
|
||||
"${innerkits_path}/native_cpp:devicemanagersdk",
|
||||
"${utils_path}:devicemanagerutils",
|
||||
|
||||
@@ -26,7 +26,7 @@ using namespace OHOS::DistributedHardware;
|
||||
|
||||
static void InitAll()
|
||||
{
|
||||
const int32_t DM_SERVICE_INIT_DELAY = 5;
|
||||
const int32_t DM_SERVICE_INIT_DELAY = 2;
|
||||
|
||||
sleep(DM_SERVICE_INIT_DELAY);
|
||||
if (IpcServerStubInit() != DEVICEMANAGER_OK) {
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
namespace {
|
||||
const int32_t WAIT_FOR_SERVER = 2;
|
||||
const int32_t STACK_SIZE = 0x800;
|
||||
const int32_t QUEUE_SIZE = 20;
|
||||
const int32_t STACK_SIZE = 0x1000;
|
||||
const int32_t QUEUE_SIZE = 32;
|
||||
}
|
||||
|
||||
using namespace OHOS::DistributedHardware;
|
||||
|
||||
Reference in New Issue
Block a user