Sese Framework
2.3.0
A cross-platform framework
|
Asynchronous task executor. More...
#include <sese/thread/GlobalThreadPool.h>
Go to the source code of this file.
Namespaces | |
namespace | sese |
Functions | |
template<class RETURN_TYPE > | |
std::shared_future< RETURN_TYPE > | sese::async (const std::function< RETURN_TYPE()> &task) noexcept |
Launch an anonymous thread to execute a task. | |
template<class RETURN_TYPE > | |
std::shared_future< RETURN_TYPE > | sese::async (ThreadPool &pool, const std::function< RETURN_TYPE()> &task) noexcept |
Submit a task to an existing thread pool. | |
template<class RETURN_TYPE > | |
std::shared_future< RETURN_TYPE > | sese::asyncWithGlobalPool (const std::function< RETURN_TYPE()> &task) noexcept |
Submit a task to the global thread pool. | |
Asynchronous task executor.