10#ifndef liblldb_ThreadSafeDenseSet_h_
11#define liblldb_ThreadSafeDenseSet_h_
15#include "llvm/ADT/DenseSet.h"
20template <
typename _ElementType,
typename _MutexType = std::mutex>
29 std::lock_guard<_MutexType> guard(
m_mutex);
34 std::lock_guard<_MutexType> guard(
m_mutex);
39 std::lock_guard<_MutexType> guard(
m_mutex);
40 return (
m_set.count(e) > 0);
44 std::lock_guard<_MutexType> guard(
m_mutex);
llvm::DenseSet< _ElementType > LLVMSetType
void Erase(_ElementType e)
void Insert(_ElementType e)
ThreadSafeDenseSet(unsigned set_initial_capacity=0)
bool Lookup(_ElementType e)
A class that represents a running process on the host machine.