提交 c9614f9d 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

Some missing cli handling in wq.c

上级 e5038b78
......@@ -154,9 +154,11 @@ wq_trywork(void)
struct wqthread *th;
int i;
pushcli();
th = __wq_pop(wq_cur());
if (th != NULL) {
__wq_run(th);
popcli();
return 1;
}
......@@ -168,10 +170,12 @@ wq_trywork(void)
th = __wq_steal(&queue[i]);
if (th != NULL) {
__wq_run(th);
popcli();
return 1;
}
}
popcli();
return 0;
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论