Nebula
Loading...
Searching...
No Matches
posixbarrier.h
Go to the documentation of this file.
1#pragma once
2#ifndef POSIX_POSIXBARRIER_H
3#define POSIX_POSIXBARRIER_H
4//------------------------------------------------------------------------------
21//------------------------------------------------------------------------------
22inline void ReadWriteBarrier() {asm volatile("": : :"memory");}
23inline void MemoryBarrier() {asm volatile("mfence":::"memory");}
24//------------------------------------------------------------------------------
25#endif
void ReadWriteBarrier()
Definition posixbarrier.h:22
void MemoryBarrier()
Definition posixbarrier.h:23