mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 00:25:07 +00:00
15 lines
315 B
C++
15 lines
315 B
C++
#include <LibCore/CEvent.h>
|
|
#include <LibCore/CEventLoop.h>
|
|
#include <LibCore/CNotifier.h>
|
|
|
|
CNotifier::CNotifier(int fd, unsigned event_mask)
|
|
: m_fd(fd)
|
|
, m_event_mask(event_mask)
|
|
{
|
|
CEventLoop::register_notifier({}, *this);
|
|
}
|
|
|
|
CNotifier::~CNotifier()
|
|
{
|
|
CEventLoop::unregister_notifier({}, *this);
|
|
}
|