[lldb-dev] Python locking refactoring

Enrico Granata granata.enrico at gmail.com
Thu Oct 20 09:26:29 PDT 2011


Hi all,
attached to this email is a patch that refactors the current implementation of locking in ScriptInterpreterPython.
Essentially, it improves on the existing Locker class to make it feasible for use everywhere a lock on the Python interpreter is required, and makes several code changes in ScriptInterpreterPython to use Locker instances instead of replicating code for acquiring and releasing said lock.
This should improve maintainability and readability of code in ScriptInterpreterPython, while keeping the external behavior of the class consistent (several runs of the test suite have shown no issues).

Thanks for any feedback on this.

Sincerely,
- Enrico Granata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111020/3ceea16f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pylock.diff
Type: application/octet-stream
Size: 23835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111020/3ceea16f/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111020/3ceea16f/attachment-0001.html>


More information about the lldb-dev mailing list