12345678910111213141516 |
- #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);
- }
|