|
psychic-ui 0.0.0
|
#include <Slot.hpp>
Public Member Functions | |
| void | compact () |
Public Attributes | |
| std::vector< std::shared_ptr< Slot< T... > > > | slots {} |
| unsigned int | emitting {0} |
| bool | dirty {false} |
What a Signal shares with its slots and with its running emissions. Slots only hold a weak_ptr to it, so disconnecting after the signal died is a no-op. An emission holds a shared_ptr to it, so the slots it iterates outlive a handler that destroys the signal.
|
inline |
Drop the disconnected slots, unless an emission is iterating over them.