diff options
Diffstat (limited to 'src/svm/ssvm.h')
-rw-r--r-- | src/svm/ssvm.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/svm/ssvm.h b/src/svm/ssvm.h index 6c679456bff..60e0cc61ca4 100644 --- a/src/svm/ssvm.h +++ b/src/svm/ssvm.h @@ -128,8 +128,7 @@ ssvm_unlock (ssvm_shared_header_t * h) { h->owner_pid = 0; h->tag = 0; - CLIB_MEMORY_BARRIER (); - h->lock = 0; + clib_atomic_release (&h->lock); } } @@ -137,8 +136,7 @@ always_inline void ssvm_unlock_non_recursive (ssvm_shared_header_t * h) { h->tag = 0; - CLIB_MEMORY_BARRIER (); - h->lock = 0; + clib_atomic_release (&h->lock); } static inline void * |