ovs-atomic: New functions atomic_flag_init(), atomic_flag_destroy().
[sliver-openvswitch.git] / lib / ovs-atomic-gcc4+.h
index 4476162..4938261 100644 (file)
@@ -238,6 +238,18 @@ typedef struct {
 } atomic_flag;
 #define ATOMIC_FLAG_INIT { false }
 
+static inline void
+atomic_flag_init(volatile atomic_flag *object OVS_UNUSED)
+{
+    /* Nothing to do. */
+}
+
+static inline void
+atomic_flag_destroy(volatile atomic_flag *object OVS_UNUSED)
+{
+    /* Nothing to do. */
+}
+
 static inline bool
 atomic_flag_test_and_set(volatile atomic_flag *object)
 {