diff options
Diffstat (limited to 'LibCore/CNotifier.cpp')
-rw-r--r-- | LibCore/CNotifier.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/LibCore/CNotifier.cpp b/LibCore/CNotifier.cpp new file mode 100644 index 0000000000..59c2a460fe --- /dev/null +++ b/LibCore/CNotifier.cpp @@ -0,0 +1,15 @@ +#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); +} + |