mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
16 lines
348 B
C++
16 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);
|
|
}
|
|
|