CNotifier.cpp 319 B

123456789101112131415
  1. #include <LibCore/CNotifier.h>
  2. #include <LibGUI/GEventLoop.h>
  3. CNotifier::CNotifier(int fd, unsigned event_mask)
  4. : m_fd(fd)
  5. , m_event_mask(event_mask)
  6. {
  7. GEventLoop::register_notifier(Badge<CNotifier>(), *this);
  8. }
  9. CNotifier::~CNotifier()
  10. {
  11. GEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
  12. }