Threading module entry point. More...
#include <future>#include <utility>#include "../api_status.h"#include "init_threading_params.h"#include "type_aliases.h"#include "async_task.h"

Go to the source code of this file.
Classes | |
| class | cl::threading::async_result< TIn > |
| class | cl::threading::async_result< void > |
Functions | |
| template<typename T > | |
| async_result< T > | cl::threading::schedule_work (const typed_work< T > &work) |
| template<typename T > | |
| async_handler | cl::threading::internal::create_task_handler (const cl::threading::typed_work< T > &work) |
| async_handler | cl::threading::internal::create_task_handler (const cl::threading::typed_work< void > &work) |
| scheduler * | cl::threading::get_scheduler () |
| Get the active scheduler for the task pool. More... | |
| api_status | cl::threading::init (const init_threading_params &p) |
| Initialize the threading module This should be called once on startup. More... | |
| api_status | cl::threading::shutdown () |
| Shut down the threading module This should be called once on shutdown. More... | |
Threading module entry point.
| async_handler cl::threading::internal::create_task_handler | ( | const cl::threading::typed_work< T > & | work | ) |
Internal function for creating a typed asynchronous task handler
| T | The type of work this handler produces |
| work | A lambda representing the workload to run asynchronously |
| cl::threading::async_handler cl::threading::internal::create_task_handler | ( | const cl::threading::typed_work< void > & | work | ) |
Internal void specialization for creating a typed asynchronous task handler
| work |
| cl::threading::scheduler * cl::threading::get_scheduler | ( | ) |
Get the active scheduler for the task pool.
| cl::api_status cl::threading::init | ( | const init_threading_params & | p | ) |
Initialize the threading module This should be called once on startup.
| p | Initialization parameters |
| cl::api_status cl::threading::shutdown | ( | ) |
Shut down the threading module This should be called once on shutdown.