|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Options for submitting jobs to the thread pool. More...
#include <submit_options.h>

Public Member Functions | |
| submit_options ()=default | |
| Default constructor with all defaults. | |
| submit_options (std::string job_name) | |
| Construct with job name only. | |
Static Public Member Functions | |
| static submit_options | named (std::string job_name) |
| Create options for a named job. | |
| static submit_options | all () |
| Create options for wait_all batch operation. | |
| static submit_options | any () |
| Create options for wait_any batch operation. | |
Public Attributes | |
| std::string | name |
| Optional name for the job (useful for debugging/tracing). | |
| bool | wait_all = false |
| If true, wait for all tasks and return results directly. | |
| bool | wait_any = false |
| If true, return the first completed result. | |
Options for submitting jobs to the thread pool.
This struct provides a unified way to configure job submission behavior, replacing the need for multiple submit method variants.
Definition at line 51 of file submit_options.h.
|
default |
Default constructor with all defaults.
|
inlineexplicit |
Construct with job name only.
| job_name | Name for the job. |
Definition at line 90 of file submit_options.h.
|
inlinestatic |
Create options for wait_all batch operation.
Definition at line 107 of file submit_options.h.
References wait_all.
|
inlinestatic |
Create options for wait_any batch operation.
Definition at line 117 of file submit_options.h.
References wait_any.
|
inlinestatic |
Create options for a named job.
| job_name | Name for the job. |
Definition at line 97 of file submit_options.h.
References name.
| std::string kcenon::thread::submit_options::name |
Optional name for the job (useful for debugging/tracing).
When empty, a default name like "async_job" is used.
Definition at line 57 of file submit_options.h.
Referenced by named(), and kcenon::thread::thread_pool::submit().
| bool kcenon::thread::submit_options::wait_all = false |
If true, wait for all tasks and return results directly.
Only applicable for batch submissions. When set:
Definition at line 68 of file submit_options.h.
Referenced by all().
| bool kcenon::thread::submit_options::wait_any = false |
If true, return the first completed result.
Only applicable for batch submissions. When set:
Definition at line 79 of file submit_options.h.
Referenced by any().