C++ Actor Framework 1.0.0
|
Base type for asynchronous consumers of an event source. More...
#include <consumer.hpp>
Public Member Functions | |
virtual void | on_producer_ready ()=0 |
Called to signal that the producer started emitting items. | |
virtual void | on_producer_wakeup ()=0 |
Called to signal to the consumer that the producer added an item to a previously empty source or completed the flow of events. | |
virtual void | ref_consumer () const noexcept=0 |
Increases the reference count of the consumer. | |
virtual void | deref_consumer () const noexcept=0 |
Decreases the reference count of the consumer and destroys the object if necessary. | |
Related Symbols | |
(Note that these are not member symbols.) | |
using | consumer_ptr = intrusive_ptr<consumer> |
void | intrusive_ptr_add_ref (const consumer *p) noexcept |
void | intrusive_ptr_release (const consumer *p) noexcept |
Base type for asynchronous consumers of an event source.
|
pure virtualnoexcept |
Decreases the reference count of the consumer and destroys the object if necessary.
Implemented in caf::flow::op::from_resource_sub< Buffer >.
|
pure virtual |
Called to signal that the producer started emitting items.
Implemented in caf::flow::op::from_resource_sub< Buffer >.
|
pure virtual |
Called to signal to the consumer that the producer added an item to a previously empty source or completed the flow of events.
Implemented in caf::flow::op::from_resource_sub< Buffer >.
|
pure virtualnoexcept |
Increases the reference count of the consumer.
Implemented in caf::flow::op::from_resource_sub< Buffer >.