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

dispatch-loop.cpp

Blame
  • user avatar
    Florian Fischer authored
    11405610
    History
    dispatch-loop.cpp 252 B
    while (!terminating) {
    	Fiber* fiber = popLocalWork();
    	if (fiber) goto dispatch;
    
    	Fiber* fiber = workStealing();
    	if (fiber) goto dispatch;
    
    	Fiber* fiber = getGlobalWork();
    	if (fiber) goto dispatch;
    
    	sleep(); continue;
    
    dispatch:
    	fiber->run();
    }