|
Common System 0.2.0
Common interfaces and patterns for system integration
|


Public Member Functions | |
| calculation_job (int value, std::atomic< int > &result) | |
| VoidResult | execute () override |
| Execute the job. | |
| std::string | get_name () const override |
| Get the name of the job (for logging/debugging) | |
| int | get_priority () const override |
| Get the priority of the job (higher = more important) | |
Public Member Functions inherited from kcenon::common::interfaces::IJob | |
| virtual | ~IJob ()=default |
| virtual | ~IJob ()=default |
Private Attributes | |
| int | value_ |
| std::atomic< int > & | result_ |
Example job implementation
Definition at line 217 of file executor_example.cpp.
|
inline |
|
inlineoverridevirtual |
Execute the job.
Implements kcenon::common::interfaces::IJob.
Definition at line 222 of file executor_example.cpp.
|
inlineoverridevirtual |
Get the name of the job (for logging/debugging)
Implements kcenon::common::interfaces::IJob.
Definition at line 234 of file executor_example.cpp.
References value_.
|
inlineoverridevirtual |
Get the priority of the job (higher = more important)
Implements kcenon::common::interfaces::IJob.
Definition at line 238 of file executor_example.cpp.
References value_.
|
private |
Definition at line 244 of file executor_example.cpp.
Referenced by execute().
|
private |
Definition at line 243 of file executor_example.cpp.
Referenced by execute(), get_name(), and get_priority().