barrier.h: add some minimal docs
Change-Id: Icd8af783713f80fd560092411782fe68f89b0d9a Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
c720c8a342
commit
c5582f2720
@ -42,7 +42,10 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Write memory barrier */
|
||||
#define spdk_wmb() __asm volatile("sfence" ::: "memory")
|
||||
|
||||
/** Full read/write memory barrier */
|
||||
#define spdk_mb() __asm volatile("mfence" ::: "memory")
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user