mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 08:33:19 +00:00
16 lines
319 B
C++
16 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);
|
||
|
}
|
||
|
|