summaryrefslogtreecommitdiff
path: root/lib/ovs-atomic-gcc4.7+.h
Commit message (Collapse)AuthorAgeFilesLines
* lib/ovs-atomic: Add atomic compare_exchange.Jarno Rajahalme2014-07-071-0/+14
| | | | | | Add support for atomic compare_exchange operations. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* ovs-atomic: Delete atomic, atomic_flag, ovs_refcount destroy functions.Ben Pfaff2014-03-131-1/+0
| | | | | | | | None of the atomic implementations need a destroy function anymore, so it's "more standard" and more convenient for users to get rid of them. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
* ovs-atomic-types: Move into ovs-atomic.h.Ben Pfaff2014-03-131-1/+0
| | | | | | | | Every implementation used this same code, so it makes sense to centralize it. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
* ovs-atomic: Factor type declarations out of most implementations.Ben Pfaff2014-03-131-41/+3
| | | | | | | This reduces duplicate code. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
* ovs-atomic: Add atomic_destroy() and use everywhere it is needed.Ben Pfaff2014-01-081-0/+1
| | | | | | | C11 is able to require that atomics don't need to be destroyed, but some of the OVS implementations do. Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovs-atomic: Add native Clang implementation.Ben Pfaff2013-08-261-32/+2
| | | | | | | | | With this implementation I get warnings with Clang on GNU/Linux when the previous patch is not applied. This ought to make it easier to avoid introducing new problems in the future even without building on FreeBSD. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
* ovs-atomic: New library for atomic operations.Ben Pfaff2013-06-281-0/+141
This library should prove useful for the threading changes coming up. The following commit introduces one (very simple) user. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>