9#ifndef LLDB_UTILITY_THREADSAFEDENSEMAP_H
10#define LLDB_UTILITY_THREADSAFEDENSEMAP_H
14#include "llvm/ADT/DenseMap.h"
25 void Insert(_KeyType k, _ValueType v) {
26 std::lock_guard<std::mutex> guard(
m_mutex);
27 m_map.insert(std::make_pair(k, v));
31 std::lock_guard<std::mutex> guard(
m_mutex);
36 std::lock_guard<std::mutex> guard(
m_mutex);
37 return m_map.lookup(k);
40 bool Lookup(_KeyType k, _ValueType &v) {
41 std::lock_guard<std::mutex> guard(
m_mutex);
50 std::lock_guard<std::mutex> guard(
m_mutex);
void Insert(_KeyType k, _ValueType v)
ThreadSafeDenseMap(unsigned map_initial_capacity=0)
llvm::DenseMap< _KeyType, _ValueType > LLVMMapType
bool Lookup(_KeyType k, _ValueType &v)
_ValueType Lookup(_KeyType k)
A class that represents a running process on the host machine.