MOD aaa-12 事件响应的时候去掉锁

SOL  事件响应的时候去掉锁
修改人:zhangliang
检视人:zhangliang
This commit is contained in:
zhanglianghy 2019-08-26 11:13:48 +08:00
parent c88b968002
commit e6067b2767
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ int br_invoke_event(BR_EVENT_TYPE event_type, br_event_t event_arg)
{ {
br_event_node_t *hnode; br_event_node_t *hnode;
pthread_mutex_lock(&(br_event_tbl.lock)); //pthread_mutex_lock(&(br_event_tbl.lock));
hlist_for_each_entry(hnode, &(br_event_tbl.head), list) hlist_for_each_entry(hnode, &(br_event_tbl.head), list)
{ {
if(hnode->br_event == event_type) if(hnode->br_event == event_type)
@ -48,7 +48,7 @@ int br_invoke_event(BR_EVENT_TYPE event_type, br_event_t event_arg)
rpc_log_info("br event:%d\n", event_type); rpc_log_info("br event:%d\n", event_type);
} }
} }
pthread_mutex_unlock(&(br_event_tbl.lock)); //pthread_mutex_unlock(&(br_event_tbl.lock));
} }