Skip to content
Snippets Groups Projects
Select Git revision
  • f5e4daa4555df0e46efddf0039b6920ef41c0096
  • master default protected
  • improve-notification
  • change-figure-color
4 results

dispatch-loop.cpp

Blame
  • dispatch-loop.cpp 238 B
    while (!terminating) {
    	Fiber* fiber = popLocalWork();
    	if (fiber) goto dispatch;
    
    	fiber = workStealing();
    	if (fiber) goto dispatch;
    
    	fiber = getGlobalWork();
    	if (fiber) goto dispatch;
    
    	sleep(); continue;
    
    dispatch:
    	fiber->run();
    }