diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-04-11 16:07:32 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-04-24 17:54:14 +0200 |
commit | 0f603d425df132adcb60b9f25ac277b26e80c72a (patch) | |
tree | 68b150acfcd3ad078e4311922dad2910e9ce137c /src/libcharon/plugins/load_tester/load_tester_ipsec.c | |
parent | efedd0d21e4caf6edae6872f29c470a464e1917a (diff) | |
download | strongswan-0f603d425df132adcb60b9f25ac277b26e80c72a.tar.bz2 strongswan-0f603d425df132adcb60b9f25ac277b26e80c72a.tar.xz |
utils: Use GCC's __atomic built-ins if available
These are available since GCC 4.7 and will eventually replace the __sync
operations. They support the memory model defined by C++11. For instance,
by using __ATOMIC_RELAXED for some operations on the reference counters we
can avoid memory barriers, which are required by __sync operations (whose
memory model essentially is __ATOMIC_SEQ_CST).
Diffstat (limited to 'src/libcharon/plugins/load_tester/load_tester_ipsec.c')
0 files changed, 0 insertions, 0 deletions