Skip to content

Commit

Permalink
[bugfix] lower CGRAPH_PRIMARY_THREAD_EMPTY_INTERVAL value, try to cov…
Browse files Browse the repository at this point in the history
…er st cannot notify pt bug.
  • Loading branch information
ChunelFeng committed Oct 20, 2024
1 parent 894476b commit 066c014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UtilsCtrl/ThreadPool/UThreadPoolDefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static const CInt CGRAPH_MAX_LOCAL_BATCH_SIZE = 2;
static const CInt CGRAPH_MAX_POOL_BATCH_SIZE = 2; // 批量执行通用任务最大值
static const CInt CGRAPH_MAX_STEAL_BATCH_SIZE = 2; // 批量盗取任务最大值
static const CInt CGRAPH_PRIMARY_THREAD_BUSY_EPOCH = 5; // 主线程进入wait状态的轮数,数值越大,理论性能越高,但空转可能性也越大
static const CMSec CGRAPH_PRIMARY_THREAD_EMPTY_INTERVAL = 1000; // 主线程进入休眠状态的默认时间
static const CMSec CGRAPH_PRIMARY_THREAD_EMPTY_INTERVAL = 20; // 主线程进入休眠状态的默认时间
static const CSec CGRAPH_SECONDARY_THREAD_TTL = 10; // 辅助线程ttl,单位为s
static const CBool CGRAPH_MONITOR_ENABLE = false; // 是否开启监控程序
static const CSec CGRAPH_MONITOR_SPAN = 5; // 监控线程执行间隔,单位为s
Expand Down

0 comments on commit 066c014

Please sign in to comment.