summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2021-03-05 16:24:45 +0800
committer彭宣正 <[email protected]>2021-03-05 16:24:45 +0800
commitc9f7a9e434f75ccec70cdf7689288e47a1ea71d4 (patch)
tree323a0768a1ff05ec68fd7a949b7ccc331c870442
parent2def391ac0e7f1fb3a2799852a4903e7b5ac96e4 (diff)
🎈perf(CMakeLists.txt,hos_client.cpp): 降低fd管理模块导致的cpu高占用率v1.0.11
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/hos_client.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b1838d5..a2a3ae68 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@ include(Version)
set(CMAKE_MACOSX_RPATH 0)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-rtti")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -fno-rtti")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xlinker --unresolved-symbols=ignore-in-shared-libs")
set(CMAKE_INSTALL_PREFIX /opt/MESA)
diff --git a/src/hos_client.cpp b/src/hos_client.cpp
index 39ac257b..b6009b9f 100644
--- a/src/hos_client.cpp
+++ b/src/hos_client.cpp
@@ -628,7 +628,7 @@ static void *hos_fd_manage(void *ptr)
}
}
}
- usleep(1000);
+ usleep(500000);
}
pthread_exit(NULL);
}