summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/mem.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-10-26 10:39:30 +0100
committerFlorin Coras <florin.coras@gmail.com>2020-10-26 23:39:27 +0000
commit70ae0a9682709ede68de467c9932472ea3c0e100 (patch)
treecc018ed438a6c71677c19d6493883d7b8f2b44ab /src/vppinfra/mem.h
parent104f0df7f4b957b53c4faf843248be25c65ce941 (diff)
vppinfra: clib_mem_vm_{un}map thread safe
Type: improvement Change-Id: I1ab1b100000b4d7212c58e10312e16e7527bd333 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/mem.h')
-rw-r--r--src/vppinfra/mem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/mem.h b/src/vppinfra/mem.h
index ca8161abae5..aba29bc0071 100644
--- a/src/vppinfra/mem.h
+++ b/src/vppinfra/mem.h
@@ -145,6 +145,9 @@ typedef struct
/* memory maps */
clib_mem_vm_map_hdr_t *first_map, *last_map;
+ /* map lock */
+ u8 map_lock;
+
/* last error */
clib_error_t *error;
} clib_mem_main_t;