mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03:00
17 lines
348 B
C++
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);
|
|
}
|
|
|