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
/
vpp
/
stats
/
stats_to_be_deprecated.c
diff --git
a/src/vpp/stats/stats_to_be_deprecated.c
b/src/vpp/stats/stats_to_be_deprecated.c
index
94d68c8
..
241bdd9
100644
(file)
--- a/
src/vpp/stats/stats_to_be_deprecated.c
+++ b/
src/vpp/stats/stats_to_be_deprecated.c
@@
-221,7
+221,7
@@
dslock (stats_main_t * sm, int release_hint, int tag)
if (release_hint)
l->release_hint++;
- while (
__sync_lock_test_and_set (&l->lock, 1
))
+ while (
clib_atomic_test_and_set (&l->lock
))
/* zzzz */ ;
l->tag = tag;
l->thread_index = thread_index;