api: fix memory error in multi-thread environment 89/33089/5
authorXiaoming Jiang <jiangxiaoming@outlook.com>
Tue, 13 Jul 2021 03:55:59 +0000 (03:55 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 14 Jul 2021 14:33:56 +0000 (14:33 +0000)
commit405debc101b20de31eda179955f7babad285cc8f
tree27949f01ff781ae63c7a794541534c0df58bdbd4
parent5cac2e819472e1723b65373f80bfd05e5cfc9996
api: fix memory error in multi-thread environment

When reading vm->pending_rpc_requests in main thread,
the content may be changed by other workers.

Type: fix

Signed-off-by: Xiaoming Jiang <jiangxiaoming@outlook.com>
Change-Id: I27e9d357b5ecec0f97cd8b950019b35f72fc5f76
src/vlibmemory/memory_api.c