mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
branches/zip:
Explicitly include os0sync.h to the places where HAVE_ATOMIC_BUILTINS and INNODB_RW_LOCKS_USE_ATOMICS are used to avoid potential problems.
This commit is contained in:
parent
a2b17a33ca
commit
729cb51007
5 changed files with 8 additions and 1 deletions
|
@ -34,6 +34,9 @@ Created 1/20/1994 Heikki Tuuri
|
|||
#define ut0ut_h
|
||||
|
||||
#include "univ.i"
|
||||
|
||||
#include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
|
||||
|
||||
#include <time.h>
|
||||
#ifndef MYSQL_SERVER
|
||||
#include <ctype.h>
|
||||
|
@ -47,7 +50,7 @@ Created 1/20/1994 Heikki Tuuri
|
|||
/** Time stamp */
|
||||
typedef time_t ib_time_t;
|
||||
|
||||
#if defined(IB_HAVE_PAUSE_INSTRUCTION)
|
||||
#if defined(HAVE_IB_PAUSE_INSTRUCTION)
|
||||
# ifdef WIN32
|
||||
/* In the Win32 API, the x86 PAUSE instruction is executed by calling
|
||||
the YieldProcessor macro defined in WinNT.h. It is a CPU architecture-
|
||||
|
|
|
@ -102,6 +102,7 @@ Created 10/8/1995 Heikki Tuuri
|
|||
#include "row0mysql.h"
|
||||
#include "ha_prototypes.h"
|
||||
#include "trx0i_s.h"
|
||||
#include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
|
||||
|
||||
/* This is set to TRUE if the MySQL user has set it in MySQL; currently
|
||||
affects only FOREIGN KEY definition parsing */
|
||||
|
|
|
@ -103,6 +103,7 @@ Created 2/16/1996 Heikki Tuuri
|
|||
# include "row0row.h"
|
||||
# include "row0mysql.h"
|
||||
# include "btr0pcur.h"
|
||||
# include "os0sync.h" /* for INNODB_RW_LOCKS_USE_ATOMICS */
|
||||
|
||||
/** Log sequence number immediately after startup */
|
||||
UNIV_INTERN ib_uint64_t srv_start_lsn;
|
||||
|
|
|
@ -38,6 +38,7 @@ Created 9/11/1995 Heikki Tuuri
|
|||
#include "os0thread.h"
|
||||
#include "mem0mem.h"
|
||||
#include "srv0srv.h"
|
||||
#include "os0sync.h" /* for INNODB_RW_LOCKS_USE_ATOMICS */
|
||||
|
||||
/*
|
||||
IMPLEMENTATION OF THE RW_LOCK
|
||||
|
|
|
@ -39,6 +39,7 @@ Created 9/5/1995 Heikki Tuuri
|
|||
#include "buf0buf.h"
|
||||
#include "srv0srv.h"
|
||||
#include "buf0types.h"
|
||||
#include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
|
||||
|
||||
/*
|
||||
REASONS FOR IMPLEMENTING THE SPIN LOCK MUTEX
|
||||
|
|
Loading…
Add table
Reference in a new issue