Skip to content

Fix Actor::waitUntilIdle

Florian Fischer requested to merge aj46ezos/emper:fix_actor_waitUntilIdle into master

Actor::waitUntilIdle is not sound because currently it busy loops may causing starvation of the Actor it is waiting for.

If emper is compiled with IO we use an AlarmFuture to wait for a second freeing the worker and then check again.
Otherwise we still busy loop but use the new emper::yieldToAnywhere to free the current worker.

Merge request reports

Loading