Skip to content
Snippets Groups Projects

EMPER shutdown

Merged Florian Schmaus requested to merge flow/emper:emper-shutdown into master
All threads resolved!
Files
15
+ 8
0
@@ -63,6 +63,13 @@ void spawn(Fiber::fiber_fun0_t function, workeraffinity_t* affinity, S& semaphor
}
namespace emper {
void init_runtime();
void init_runtime(workerid_t worker_count);
void destroy_runtime();
void yield() {
Runtime* runtime = Runtime::getRuntime();
runtime->yield();
@@ -79,4 +86,5 @@ auto sleep(unsigned int seconds) -> bool {
return res == -ETIME;
}
} // namespace emper
Loading