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

System shutdown event. More...

#include <event_bus.h>

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

Public Member Functions

 system_shutdown_event (std::string name, std::string reason_msg="")
 
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
 
std::string reason
 

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 shutdown event.

Definition at line 299 of file event_bus.h.

Constructor & Destructor Documentation

◆ system_shutdown_event()

kcenon::thread::system_shutdown_event::system_shutdown_event ( std::string name,
std::string reason_msg = "" )
inline

Definition at line 303 of file event_bus.h.

304 : system_name(std::move(name)), reason(std::move(reason_msg)) {}

Member Function Documentation

◆ type_name()

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

Get event type name.

Returns
Event type name

Implements kcenon::thread::event_base.

Definition at line 306 of file event_bus.h.

306 {
307 return "SystemShutdownEvent";
308 }

Member Data Documentation

◆ reason

std::string kcenon::thread::system_shutdown_event::reason

Definition at line 301 of file event_bus.h.

◆ system_name

std::string kcenon::thread::system_shutdown_event::system_name

Definition at line 300 of file event_bus.h.


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