mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
15 lines
319 B
C++
15 lines
319 B
C++
#include <LibCore/CNotifier.h>
|
|
#include <LibGUI/GEventLoop.h>
|
|
|
|
CNotifier::CNotifier(int fd, unsigned event_mask)
|
|
: m_fd(fd)
|
|
, m_event_mask(event_mask)
|
|
{
|
|
GEventLoop::register_notifier(Badge<CNotifier>(), *this);
|
|
}
|
|
|
|
CNotifier::~CNotifier()
|
|
{
|
|
GEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
|
|
}
|
|
|