X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fovs-atomic-pthreads.h;h=33270c6a2a28ef58429cdd12cb2b0590ec56e102;hb=8917f72cbb04fb32dc29f93475bcd2de3011d442;hp=b49d6991bd461c524b7bcc919bcf20d61ac68844;hpb=6a36690c200a08dfbd5648269e3e1ab837d1b726;p=sliver-openvswitch.git diff --git a/lib/ovs-atomic-pthreads.h b/lib/ovs-atomic-pthreads.h index b49d6991b..33270c6a2 100644 --- a/lib/ovs-atomic-pthreads.h +++ b/lib/ovs-atomic-pthreads.h @@ -44,7 +44,6 @@ typedef enum { #define ATOMIC_VAR_INIT(VALUE) (VALUE) #define atomic_init(OBJECT, VALUE) (*(OBJECT) = (VALUE), (void) 0) -#define atomic_destroy(OBJECT) ((void) (OBJECT)) static inline void atomic_thread_fence(memory_order order OVS_UNUSED) @@ -92,18 +91,6 @@ typedef struct { } atomic_flag; #define ATOMIC_FLAG_INIT { false } -static inline void -atomic_flag_init(volatile atomic_flag *flag OVS_UNUSED) -{ - /* Nothing to do. */ -} - -static inline void -atomic_flag_destroy(volatile atomic_flag *flag OVS_UNUSED) -{ - /* Nothing to do. */ -} - static inline bool atomic_flag_test_and_set(volatile atomic_flag *flag_) {