!73 Modify DM L1 Service Config

Merge pull request !73 from 郑建明/master
This commit is contained in:
openharmony_ci
2021-10-19 14:29:59 +00:00
committed by Gitee
5 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -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: \
+2
View File
@@ -22,3 +22,5 @@ services_path = "${devicemanager_path}/services"
innerkits_path = "${devicemanager_path}/interfaces/inner_kits"
build_flags = [ "-Werror" ]
dm_ldflags = [ "-lpthread" ]
+2
View File
@@ -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;