mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
refactor(vrtManager): the connection manager locks its dict with threading.RLock
The 223-line read-write lock guarded only the dict of connections, a lookup of a few entries: readers never waited on a long writer, as the connection is opened outside the lock. One reentrant lock does the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
2dfc393f05
commit
56806b2f8b
4 changed files with 15 additions and 480 deletions
|
|
@ -68,7 +68,6 @@ The libvirt layer: the connections and the host objects the apps work on (the ap
|
|||
| `hostdetails.py` | host CPU, memory and capabilities |
|
||||
| `storage.py`, `network.py`, `interface.py`, `nwfilters.py`, `virtsecrets.py`, `nodedevs.py` | the host objects of the apps with the same names |
|
||||
| `util.py` | `OperationError` (its text translated when shown, English in logs), XML helpers |
|
||||
| `rwlock.py` | the connection manager's read-write lock |
|
||||
|
||||
## Jobs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue