//----------------------------------------------------------------------------- // nulo.h //----------------------------------------------------------------------------- #include #include #include #include #ifdef __has_include #if __has_include() #include #endif // __has_include #endif // __has_include() #ifdef __has_include #if __has_include() #include #endif // __has_include #endif // __has_include() //----------------------------------------------------------------------------- #ifdef __has_include #if __has_include() void usuario() { boost::fibers::fiber t([] {}); t.join(); } #endif // __has_include #endif // __has_include() //----------------------------------------------------------------------------- #ifdef __has_include #if __has_include() void hibrida() { tbb::task_group tg; tg.run([] {}); tg.wait(); } #endif // __has_include #endif // __has_include() //----------------------------------------------------------------------------- void nucleo() { std::thread t([] {}); t.join(); } //----------------------------------------------------------------------------- void proceso() { if (fork()) wait(nullptr); else execl("nulo", "nulo", nullptr); } //-----------------------------------------------------------------------------