LibCore: Make CSocket's notifiers into children of the CSocket

The Inspector app quickly exposes crappy flat object hiearchies without
parent/child relationships. This is one of many commits that improves
the situation by making parent/child CObject relationships explicit.
This commit is contained in:
Andreas Kling 2019-08-18 11:54:39 +02:00
commit 1b3599fbbc
Notes: sideshowbarker 2024-07-19 12:37:04 +09:00
3 changed files with 6 additions and 5 deletions

View file

@ -12,7 +12,7 @@ public:
Write = 2,
Exceptional = 4,
};
CNotifier(int fd, unsigned event_mask);
CNotifier(int fd, unsigned event_mask, CObject* parent = nullptr);
virtual ~CNotifier() override;
void set_enabled(bool);