Change-Id: Id9390743fb1ebc0a6951f071d50e1cd8e05112d4
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
, m_msg(msg)
{ }
+ virtual ~send_event_handler()
+ {
+ if (m_ch) {
+ m_ch->remove_pending_event_id(m_event_id);
+ }
+ }
+
bool handle(int fd, event_condition condition)
{
if (!m_ch) {
virtual ~event_handler() {}
virtual bool handle(int fd, event_condition condition) = 0;
- void set_event_id(int64_t event_id)
+ void set_event_id(uint64_t event_id)
{
- m_event_id = 0;
+ m_event_id = event_id;
}
protected:
- int64_t m_event_id;
+ uint64_t m_event_id;
};
}