From: Sergey Elantsev Date: Sat, 22 Aug 2020 12:38:34 +0000 (+0300) Subject: fixed data race in mock vpp adapter X-Git-Tag: v0.4.0~48 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=42d11af03300fe0a3476c32ad8c70297862d9320;hp=42d11af03300fe0a3476c32ad8c70297862d9320;p=govpp.git fixed data race in mock vpp adapter 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 Change-Id: I6c8873b766df6ea866196a9b96a48ebd08689772 ---