9#ifndef LLDB_CORE_THREADSAFEVALUE_H
10#define LLDB_CORE_THREADSAFEVALUE_H
28 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
39 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
ThreadSafeValue()=default
ThreadSafeValue(const ThreadSafeValue &)=delete
void SetValue(const T &value)
const T & GetValueNoLock() const
ThreadSafeValue(const T &value)
std::recursive_mutex m_mutex
void SetValueNoLock(const T &value)
std::recursive_mutex & GetMutex()
~ThreadSafeValue()=default
const ThreadSafeValue & operator=(const ThreadSafeValue &)=delete
A class that represents a running process on the host machine.