Stop channeling printbuffers to stdostream. Instead, provide an invocation CHANNEL_PRINTS.
This commit is contained in:
@@ -270,6 +270,13 @@ public:
|
||||
retpk->write_bytes(errmsg);
|
||||
break;
|
||||
}
|
||||
case AccessKind::CHANNEL_PRINTS: {
|
||||
world_to_asynchronous();
|
||||
if (print_channeler_.channel(world_->get_printbuffer(actor_id_), retpk)) {
|
||||
send_invocation(print_channeler_.invocation(actor_id_));
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
util::dprint("Invalid event_access: ", int(kind));
|
||||
}
|
||||
@@ -305,11 +312,6 @@ public:
|
||||
world_to_asynchronous();
|
||||
}
|
||||
}
|
||||
|
||||
// Channel print statements.
|
||||
if (print_channeler_.channel(world_->get_printbuffer(actor_id_), stdostream())) {
|
||||
send_invocation(print_channeler_.invocation(actor_id_));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user