|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Subscription handle for managing subscriptions. More...
#include <event_bus.h>

Public Member Functions | |
| subscription ()=default | |
| subscription (event_bus *bus, std::type_index type, std::size_t id) | |
| void | unsubscribe () |
| Unsubscribe from events. | |
| bool | is_active () const |
| Check if subscription is active. | |
| subscription (subscription &&other) noexcept | |
| subscription & | operator= (subscription &&other) noexcept |
| subscription (const subscription &)=delete | |
| subscription & | operator= (const subscription &)=delete |
| ~subscription () | |
Private Attributes | |
| event_bus * | bus_ {nullptr} |
| std::type_index | type_ {typeid(void)} |
| std::size_t | id_ {0} |
Subscription handle for managing subscriptions.
Definition at line 65 of file event_bus.h.
|
default |
|
inline |
Definition at line 68 of file event_bus.h.
|
inlinenoexcept |
Definition at line 89 of file event_bus.h.
|
delete |
|
inline |
Definition at line 109 of file event_bus.h.
References unsubscribe().

|
inline |
|
delete |
|
inlinenoexcept |
Definition at line 94 of file event_bus.h.
References bus_, id_, type_, and unsubscribe().

|
inline |
Unsubscribe from events.
Definition at line 74 of file event_bus.h.
References bus_, id_, type_, and kcenon::thread::event_bus::unsubscribe().
Referenced by operator=(), and ~subscription().


|
private |
Definition at line 114 of file event_bus.h.
Referenced by is_active(), operator=(), and unsubscribe().
|
private |
|
private |
Definition at line 115 of file event_bus.h.
Referenced by operator=(), and unsubscribe().