载入中...
搜索中...
未找到
PlatformEvent.h
浏览该文件的文档.
162 [[nodiscard]] std::uint64_t pollObserverFailureCount() const noexcept { return pollObserverFailures_; }
188 std::uint64_t pollObserverFailures_ = 0;
Thread-affine callback registry with mutation-safe dispatch.
Definition Subscription.h:82
Move-only RAII token that owns one observer registration.
Definition Subscription.h:27
A named event carrying an ordered list of Variant payloads. Pushed messages are heap-allocated; the q...
Definition PlatformEvent.h:77
virtual void pump()=0
Platform hook: pumps the native event queue into this module.
std::queue< std::unique_ptr< Message > > queue
Definition PlatformEvent.h:182
eve::Observer< Message > pollObservers_
Definition PlatformEvent.h:186
const std::function< void(const Message &)> & pollObserver() const
Current poll observer, or empty if none.
Definition PlatformEvent.h:149
std::unique_ptr< Message > waitOwned()
Blocking wait returning an RAII handle.
Definition PlatformEvent.h:175
virtual Message * wait()=0
Platform hook: blocks until a message is available, then polls it. @ownership Ownership transfers to ...
eve::Subscription legacyPollSubscription_
Definition PlatformEvent.h:187
void setPollObserver(std::function< void(const Message &)> observer)
Sets an observer invoked for every message consumed via poll*().
Definition PlatformEvent.h:142
virtual void wakeWaiters()
Wake a platform-specific blocking wait after a message is queued.
Definition PlatformEvent.h:179
Module_REG(PlatformEvent)
std::uint64_t pollObserverFailureCount() const noexcept
Number of contained poll-listener exceptions since construction.
Definition PlatformEvent.h:162
enum EVENGINE_API_FOUNDATION Table
OT_TABLE (editable via Runtime table APIs / ReflectedPropertyModel).
Definition Runtime.h:121
EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
Definition ECS.h:14
static Variant makePtr(void *v)
Constructs a pointer variant (borrowed, not owned).
Definition PlatformEvent.h:52
bool ownsPointer() const
Whether this pointer payload owns the pointed-to object.
Definition PlatformEvent.h:69
static Variant makeOwnedPtr(T *v)
Constructs an owning pointer variant deleted with the message.
Definition PlatformEvent.h:61
static Variant makeString(std::string v)
Constructs a string variant (takes ownership of the value).
Definition PlatformEvent.h:45