diff options
author | Tom <tomut@yahoo.com> | 2020-08-24 19:35:19 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-25 09:48:48 +0200 |
commit | d89582880ed81c38df67687eadfc0764b6ce5ddd (patch) | |
tree | 3ff52c4e8808c5167ee37d5bf0a6669e9a18dfb4 /Kernel/Net/LoopbackAdapter.h | |
parent | ba6e4fb77f00587d2bd57865a00b1a4526684741 (diff) | |
download | serenity-d89582880ed81c38df67687eadfc0764b6ce5ddd.zip |
Kernel: Switch singletons to use new Singleton class
MemoryManager cannot use the Singleton class because
MemoryManager::initialize is called before the global constructors
are run. That caused the Singleton to be re-initialized, causing
it to create another MemoryManager instance.
Fixes #3226
Diffstat (limited to 'Kernel/Net/LoopbackAdapter.h')
-rw-r--r-- | Kernel/Net/LoopbackAdapter.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/Net/LoopbackAdapter.h b/Kernel/Net/LoopbackAdapter.h index b87bb5003f..cebedfe7a3 100644 --- a/Kernel/Net/LoopbackAdapter.h +++ b/Kernel/Net/LoopbackAdapter.h @@ -33,15 +33,13 @@ namespace Kernel { class LoopbackAdapter final : public NetworkAdapter { AK_MAKE_ETERNAL public: + LoopbackAdapter(); static LoopbackAdapter& the(); virtual ~LoopbackAdapter() override; virtual void send_raw(ReadonlyBytes) override; virtual const char* class_name() const override { return "LoopbackAdapter"; } - -private: - LoopbackAdapter(); }; } |