Code Review
/
govpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from:
42d11af
)
fixed data race in mock vpp adapter
25/28625/2
author
Sergey Elantsev
<elantsev.s@yandex.ru>
Sat, 22 Aug 2020 12:38:34 +0000
(15:38 +0300)
committer
Ondrej Fabry
<ofabry@cisco.com>
Wed, 2 Sep 2020 17:39:17 +0000
(17:39 +0000)
There was a race in reading VppAdapter.mode in SendMsg and
writing in MockReply/MockReplyHandler/MockReplyWithContext.
All these *Reply* methods hold VppAdapter.repliesLock, so
this fix uses this lock to safely read the value of a mode field.
Signed-off-by: Sergey Elantsev <elantsev.s@yandex.ru>
Change-Id: I6c8873b766df6ea866196a9b96a48ebd08689772
No differences found