|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Event base class for type safety. More...
#include <event_bus.h>


Public Member Functions | |
| virtual | ~event_base ()=default |
| virtual std::string | type_name () const =0 |
| Get event type name. | |
| std::chrono::steady_clock::time_point | timestamp () const |
| Get event timestamp. | |
Protected Attributes | |
| std::chrono::steady_clock::time_point | timestamp_ {std::chrono::steady_clock::now()} |
Event base class for type safety.
Definition at line 28 of file event_bus.h.
|
virtualdefault |
|
inline |
Get event timestamp.
Definition at line 42 of file event_bus.h.
References timestamp_.
|
pure virtual |
Get event type name.
Implemented in kcenon::thread::config_changed_event, kcenon::thread::performance_alert_event, kcenon::thread::system_shutdown_event, and kcenon::thread::system_startup_event.
|
protected |
Definition at line 47 of file event_bus.h.
Referenced by timestamp().