|
LLDB mainline
|
RAII guard that pops a policy on destruction. More...
#include <Policy.h>
Public Member Functions | |
| ~Guard () | |
| Guard (Guard &&other) | |
| Guard & | operator= (Guard &&other) |
| Guard (const Guard &)=delete | |
| Guard & | operator= (const Guard &)=delete |
Private Member Functions | |
| Guard () | |
Private Attributes | |
| std::thread::id | m_thread_id |
| bool | m_active = false |
Friends | |
| class | PolicyStack |
RAII guard that pops a policy on destruction.
A Guard is bound to the thread that created it: the policy stack lives in thread_local storage, so popping from a different thread would corrupt that thread's stack. Guards may be moved, but only on the owning thread; a cross-thread move or destruction is a fatal error.
| PolicyStack::Guard::~Guard | ( | ) |
Definition at line 54 of file Policy.cpp.
References lldb_private::PolicyStack::Get(), m_active, m_thread_id, and lldb_private::PolicyStack::Pop().
| PolicyStack::Guard::Guard | ( | Guard && | other | ) |
Definition at line 64 of file Policy.cpp.
References Guard(), m_active, and m_thread_id.
Referenced by Guard(), Guard(), operator=(), operator=(), and PolicyStack.
|
inlineprivate |
Definition at line 125 of file Policy.h.
References m_active, and m_thread_id.
| PolicyStack::Guard & PolicyStack::Guard::operator= | ( | Guard && | other | ) |
Definition at line 71 of file Policy.cpp.
References lldb_private::PolicyStack::Get(), Guard(), m_active, m_thread_id, and lldb_private::PolicyStack::Pop().
|
friend |
Definition at line 114 of file Policy.h.
References Guard(), and PolicyStack.
Referenced by PolicyStack.
|
private |
|
private |