Files
clang-p2996/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwinProperties.h
Dmitrii Galimzianov 5f2cf99e14 DynamicLoaderDarwin load images in parallel with preload (#110646)
This change enables `DynamicLoaderDarwin` to load modules in parallel
using the thread pool. This new behavior is controlled by a new setting
`plugin.dynamic-loader.darwin.experimental.enable-parallel-image-load`,
which is enabled by default. When disabled, DynamicLoaderDarwin will
load modules sequentially as before.
2024-10-15 13:25:01 -07:00

35 lines
1.2 KiB
C++

//===-- DynamicLoaderDarwinProperties.h -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERDARWINPROPERTIES_H
#define LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERDARWINPROPERTIES_H
#include "lldb/Core/UserSettingsController.h"
namespace lldb_private {
class DynamicLoaderDarwinProperties : public Properties {
public:
class ExperimentalProperties : public Properties {
public:
ExperimentalProperties();
};
static llvm::StringRef GetSettingName();
static DynamicLoaderDarwinProperties &GetGlobal();
DynamicLoaderDarwinProperties();
~DynamicLoaderDarwinProperties() override = default;
bool GetEnableParallelImageLoad() const;
private:
std::unique_ptr<ExperimentalProperties> m_experimental_properties;
};
} // namespace lldb_private
#endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERDARWINPROPERTIES_H