From da8108cfc88fa9c5346d11d1c8a97dc7fb302766 Mon Sep 17 00:00:00 2001 From: Mikael Ronstrom Date: Mon, 15 Dec 2008 10:46:02 +0100 Subject: [PATCH] Fixed missing header --- storage/innobase/include/os0sync.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/storage/innobase/include/os0sync.h b/storage/innobase/include/os0sync.h index 28e67483fa6..26d2786e33b 100644 --- a/storage/innobase/include/os0sync.h +++ b/storage/innobase/include/os0sync.h @@ -287,6 +287,21 @@ os_atomic_increment( volatile lint* ptr, /* in: pointer to target */ lint amount); /* in: amount of increment */ +/************************************************************** +Memory barrier operations for InnoDB. +Currently requires GCC atomic builtins. */ +UNIV_INLINE +void +os_memory_barrier_load(); + +UNIV_INLINE +void +os_memory_barrier_store(); + +UNIV_INLINE +void +os_memory_barrier(); + #endif /* UNIV_SYNC_ATOMIC */ #ifndef UNIV_NONINL