Skip to content
Snippets Groups Projects

Schedule from anywhere

Merged Florian Schmaus requested to merge flow/emper:schedule-everywhere into master
All threads resolved!
8 files
+ 133
8
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 3
1
@@ -48,7 +48,7 @@ class Actor {
}
protected:
Actor(Runtime& runtime) : runtime(runtime), queue(runtime) {}
Actor(Runtime& runtime = *Runtime::getRuntime()) : runtime(runtime), queue(runtime) {}
virtual void receive(T t) = 0;
@@ -64,6 +64,8 @@ class Actor {
void tell(T t) { queue.put(t); }
void tellFromAnywhere(T t) { queue.putFromAnywhere(t); }
auto pendingMailboxItems() -> size_t { return queue.size(); }
auto waitUntilIdle(long timeout) -> bool {
Loading