Skip to content

Commit

Permalink
msg/async/Event: don't execute inline if nonwait
Browse files Browse the repository at this point in the history
Signed-off-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 committed Jun 29, 2016
1 parent 4b5bb65 commit 1f65a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msg/async/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class EventCenter {
assert(i < MAX_EVENTCENTER && global_centers);
EventCenter *c = global_centers->centers[i];
assert(c);
if (c->in_thread()) {
if (!nowait && c->in_thread()) {
f();
return ;
}
Expand Down

0 comments on commit 1f65a35

Please sign in to comment.