HA_BARRIER() is just a simple memory barrier to prevent the compiler
from reordering our code.
*(val); \
})
+#define HA_BARRIER() do { } while (0)
#define THREAD_SYNC_INIT(m) do { /* do nothing */ } while(0)
#define THREAD_SYNC_ENABLE() do { /* do nothing */ } while(0)
(*val); \
})
+#define HA_BARRIER() pl_barrier()
+
#define THREAD_SYNC_INIT(m) thread_sync_init(m)
#define THREAD_SYNC_ENABLE() thread_sync_enable()
#define THREAD_WANT_SYNC() thread_want_sync()