Commit ca538378 authored by Dominik Charousset's avatar Dominik Charousset

better use of CPPA_REQUIRE in no_scheduling

parent f15bba63
......@@ -76,9 +76,9 @@ class no_scheduling {
template<class Actor>
void launch(Actor* self, execution_unit*) {
CPPA_REQUIRE(self != nullptr);
CPPA_PUSH_AID(self->id());
CPPA_LOG_TRACE(CPPA_ARG(self));
CPPA_REQUIRE(self != nullptr);
intrusive_ptr<Actor> mself{self};
self->attach_to_scheduler();
std::thread([=] {
......@@ -91,6 +91,7 @@ class no_scheduling {
}
// await new data before resuming actor
await_data(mself.get());
CPPA_REQUIRE(self->mailbox().blocked() == false);
}
self->detach_from_scheduler();
}).detach();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment