Sese Framework
x.y.z
A cross-platform framework
|
异步任务执行器 更多...
#include <sese/thread/GlobalThreadPool.h>
命名空间 | |
namespace | sese |
函数 | |
template<class RETURN_TYPE > | |
std::shared_future< RETURN_TYPE > | sese::async (const std::function< RETURN_TYPE()> &task) noexcept |
template<class RETURN_TYPE > | |
std::shared_future< RETURN_TYPE > | sese::async (ThreadPool &pool, const std::function< RETURN_TYPE()> &task) noexcept |
template<class RETURN_TYPE > | |
std::shared_future< RETURN_TYPE > | sese::asyncWithGlobalPool (const std::function< RETURN_TYPE()> &task) noexcept |
异步任务执行器