1 //===-- SystemLifetimeManager.h -------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_INITIALIZATION_SYSTEM_LIFETIME_MANAGER_H
11 #define LLDB_INITIALIZATION_SYSTEM_LIFETIME_MANAGER_H
13 #include "lldb/lldb-private-types.h"
18 namespace lldb_private {
19 class SystemInitializer;
21 class SystemLifetimeManager {
23 SystemLifetimeManager();
24 ~SystemLifetimeManager();
26 void Initialize(std::unique_ptr<SystemInitializer> initializer,
27 LoadPluginCallbackType plugin_callback);
31 std::recursive_mutex m_mutex;
32 std::unique_ptr<SystemInitializer> m_initializer;
36 SystemLifetimeManager(const SystemLifetimeManager &other) = delete;
37 SystemLifetimeManager &operator=(const SystemLifetimeManager &other) = delete;