Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::system_startup_event Struct Reference

System startup event. More...

#include <event_bus.h>

Inheritance diagram for kcenon::thread::system_startup_event:
Inheritance graph
Collaboration diagram for kcenon::thread::system_startup_event:
Collaboration graph

Public Member Functions

 system_startup_event (std::string name)
 
std::string type_name () const override
 Get event type name.
 
- Public Member Functions inherited from kcenon::thread::event_base
virtual ~event_base ()=default
 
std::chrono::steady_clock::time_point timestamp () const
 Get event timestamp.
 

Public Attributes

std::string system_name
 

Additional Inherited Members

- Protected Attributes inherited from kcenon::thread::event_base
std::chrono::steady_clock::time_point timestamp_ {std::chrono::steady_clock::now()}
 

Detailed Description

System startup event.

Definition at line 285 of file event_bus.h.

Constructor & Destructor Documentation

◆ system_startup_event()

kcenon::thread::system_startup_event::system_startup_event ( std::string name)
inlineexplicit

Definition at line 288 of file event_bus.h.

289 : system_name(std::move(name)) {}

Member Function Documentation

◆ type_name()

std::string kcenon::thread::system_startup_event::type_name ( ) const
inlineoverridevirtual

Get event type name.

Returns
Event type name

Implements kcenon::thread::event_base.

Definition at line 291 of file event_bus.h.

291 {
292 return "SystemStartupEvent";
293 }

Member Data Documentation

◆ system_name

std::string kcenon::thread::system_startup_event::system_name

Definition at line 286 of file event_bus.h.


The documentation for this struct was generated from the following file: