diff options
author | Ole Troan <ot@cisco.com> | 2017-01-19 09:44:44 +0100 |
---|---|---|
committer | Ole Troan <ot@cisco.com> | 2017-01-20 01:49:04 +0100 |
commit | 7104f93c75aacb97df8c2c5388ef2f1164ce7403 (patch) | |
tree | 9d32fae841dc737a75613134548b3f9d38934d13 /build-root/scripts/version | |
parent | 12713c70fc8c0a0aa92cdbc42c98bac8932f2d63 (diff) |
Python API: Missing locking of results data structure.
The wrong assumption that the GIL combined with CPython's "mostly"
thread safe assurance does not hold. The combination of a slow
event handler for notification and calling the API at the same
time let to contention on the results data structure.
Added suitable locking.
Also added an atexit() to attempt a VPP disconnect on shutdown.
Also: lots more comments, docstrings, duplicated code removed.
Some of the problem here was a disagreement between caller
and author as to how the API should be used; the comments should
help.
Change-Id: I0cb7d0026db660ec141425c5ad474f14bacea36e
Signed-off-by: Ole Troan <ot@cisco.com>
Co-Authored-By: Ian Wells <iawells@cisco.com>
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'build-root/scripts/version')
0 files changed, 0 insertions, 0 deletions