msg/async/Event: don't execute inline if nonwait

Signed-off-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
Haomai Wang 2016-06-20 00:03:03 +08:00
parent 4b5bb65b61
commit 1f65a355be

View File

@ -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 ;
}