diff options
author | Enrico Granata <egranata@apple.com> | 2013-03-27 22:38:11 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-03-27 22:38:11 +0000 |
commit | 1414aba4ae30f89c2513bdbbb56c281cec014902 (patch) | |
tree | d4d905d140fd6a9a5ceb8e91af521ea00330c616 /source/Plugins/UnwindAssembly/InstEmulation | |
parent | 28bd2c8c223e9033ddb68881b24348f4291560f9 (diff) | |
download | lldb-1414aba4ae30f89c2513bdbbb56c281cec014902.tar.gz |
Implementing the notion of externally-acquirable ScriptInterpreter lock
With this notion, if parties outside the ScriptInterpreter itself need to acquire a lock on script APIs, they can do so by a pattern like this:
{
auto lock = interpeter->AcquireInterpreterLock();
// do whatever you need to do...
} // lock will automatically be released here
This might be useful for classes that use the Python convenience objects (e.g. PythonDictionary) to ensure they keep the underlying interpreter in a safe and controlled condition while they call through the C API functions
Of course, the ScriptInterpreter still manages its internal locking correctly when necessary :-)
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@178189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Plugins/UnwindAssembly/InstEmulation')
0 files changed, 0 insertions, 0 deletions