blob: a7e1344900c55f0345f67a469ff7806cfb7bb1c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <LibCore/CNotifier.h>
#include <LibCore/CEventLoop.h>
#include <LibCore/CEvent.h>
CNotifier::CNotifier(int fd, unsigned event_mask)
: m_fd(fd)
, m_event_mask(event_mask)
{
CEventLoop::register_notifier(Badge<CNotifier>(), *this);
}
CNotifier::~CNotifier()
{
CEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
}
|