ladybird/LibCore/CNotifier.cpp
2019-04-12 00:03:21 +02:00

17 lines
348 B
C++

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