Feature #2895
原子锁使用优化
Start date:
03/23/2023
Due date:
% Done:
100%
Estimated time:
Defect version:
Description
原子锁未释放时导致后续线程不能获取锁,如实时库版告警服务em_aps,当此进程异常崩溃未释放原子锁时,再次启动的em_aps服务不能获取锁,导致不能处理告警。
Related issues
History
Updated by jiwei shi almost 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
em_aps进程启动时初始化原子锁,用以防止死锁;CEH事件原子锁添加超时强抓控制权,使用mutex管理同进程下多线程同时强抢问题,经测试满足要求;