Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: add atomic macros for __sync builtins
[vpp.git]
/
src
/
vppinfra
/
mheap.c
diff --git
a/src/vppinfra/mheap.c
b/src/vppinfra/mheap.c
index
5b71873
..
0a62943
100644
(file)
--- a/
src/vppinfra/mheap.c
+++ b/
src/vppinfra/mheap.c
@@
-63,7
+63,7
@@
mheap_maybe_lock (void *v)
return;
}
- while (
__sync_lock_test_and_set (&h->lock, 1
))
+ while (
clib_atomic_test_and_set (&h->lock
))
;
h->owner_cpu = my_cpu;