mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Don't delete system object on no handles
The system object should never be deleted, so override on_no_handles() to do nothing.
This commit is contained in:
@@ -18,6 +18,10 @@ public:
|
||||
|
||||
inline static system & get() { return s_instance; }
|
||||
|
||||
protected:
|
||||
/// Don't delete the system object on no handles.
|
||||
virtual void on_no_handles() override {}
|
||||
|
||||
private:
|
||||
static system s_instance;
|
||||
system() : kobject(type::system) {}
|
||||
|
||||
Reference in New Issue
Block a user