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
//------------------------------------------------------------------------------
22
inline
void
ReadWriteBarrier
() {
asm
volatile
(
""
: : :
"memory"
);}
23
inline
void
MemoryBarrier
() {
asm
volatile
(
"mfence"
:::
"memory"
);}
24
//------------------------------------------------------------------------------
25
#endif
ReadWriteBarrier
void ReadWriteBarrier()
Definition
posixbarrier.h:22
MemoryBarrier
void MemoryBarrier()
Definition
posixbarrier.h:23
code
foundation
threading
posix
posixbarrier.h
Generated on Fri Nov 22 2024 12:50:49 for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.