diff options
Diffstat (limited to 'include/lldb/Core/ModuleList.h')
-rw-r--r-- | include/lldb/Core/ModuleList.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/lldb/Core/ModuleList.h b/include/lldb/Core/ModuleList.h index a0dd43263a2c..38a91b0bf0ee 100644 --- a/include/lldb/Core/ModuleList.h +++ b/include/lldb/Core/ModuleList.h @@ -14,13 +14,14 @@ // C++ Includes #include <functional> #include <list> +#include <mutex> #include <vector> // Other libraries and framework includes // Project includes #include "lldb/lldb-private.h" -#include "lldb/Host/Mutex.h" #include "lldb/Utility/Iterable.h" +#include "llvm/ADT/DenseSet.h" namespace lldb_private { @@ -163,13 +164,13 @@ public: void LogUUIDAndPaths (Log *log, const char *prefix_cstr); - - Mutex & - GetMutex () const + + std::recursive_mutex & + GetMutex() const { return m_modules_mutex; } - + size_t GetIndexForModule (const Module *module) const; @@ -450,6 +451,7 @@ public: const ConstString &name, bool name_is_fully_qualified, size_t max_matches, + llvm::DenseSet<SymbolFile *> &searched_symbol_files, TypeList& types) const; bool @@ -591,12 +593,12 @@ protected: // Member variables. //------------------------------------------------------------------ collection m_modules; ///< The collection of modules. - mutable Mutex m_modules_mutex; + mutable std::recursive_mutex m_modules_mutex; Notifier* m_notifier; public: - typedef LockingAdaptedIterable<collection, lldb::ModuleSP, vector_adapter> ModuleIterable; + typedef LockingAdaptedIterable<collection, lldb::ModuleSP, vector_adapter, std::recursive_mutex> ModuleIterable; ModuleIterable Modules() { |