Skip to content

Commit

Permalink
Shrink my_atomic.h and my_cpu.h scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Vojtovich committed Apr 15, 2020
1 parent 4bd9f82 commit 5679a2b
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion include/lf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#define INCLUDE_LF_INCLUDED

#include <my_atomic.h>
#include <my_cpu.h>

C_MODE_START

Expand Down
2 changes: 0 additions & 2 deletions include/my_pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#define ETIME ETIMEDOUT /* For FreeBSD */
#endif

#include <my_atomic.h>

#ifdef __cplusplus
#define EXTERNC extern "C"
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions mysys/lf_alloc-pin.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
#include <my_global.h>
#include <my_sys.h>
#include <lf.h>
#include "my_cpu.h"

/*
when using alloca() leave at least that many bytes of the stack -
Expand Down
1 change: 1 addition & 0 deletions mysys/lf_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <mysys_err.h>
#include <my_bit.h>
#include <lf.h>
#include "my_cpu.h"

/* An element of the list */
typedef struct {
Expand Down
1 change: 1 addition & 0 deletions mysys/my_fopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "my_static.h"
#include <errno.h>
#include "mysys_err.h"
#include "my_atomic.h"

static void make_ftype(char * to,int flag);

Expand Down
1 change: 1 addition & 0 deletions mysys/my_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "mysys_err.h"
#include <m_string.h>
#include <errno.h>
#include "my_atomic.h"

CREATE_NOSYMLINK_FUNCTION(
open_nosymlinks(const char *pathname, int flags, int mode),
Expand Down
1 change: 1 addition & 0 deletions mysys/waiting_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
#include <my_global.h>
#include <waiting_threads.h>
#include <m_string.h>
#include "my_cpu.h"

/* status variables */

Expand Down
1 change: 1 addition & 0 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include <m_ctype.h>
#include <my_dir.h>
#include <my_bit.h>
#include "my_cpu.h"
#include "slave.h"
#include "rpl_mi.h"
#include "sql_repl.h"
Expand Down
1 change: 1 addition & 0 deletions sql/sql_show.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#endif
#include "transaction.h"
#include "opt_trace.h"
#include "my_cpu.h"

enum enum_i_s_events_fields
{
Expand Down
1 change: 1 addition & 0 deletions sql/xa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "mariadb.h"
#include "sql_class.h"
#include "transaction.h"
#include "my_cpu.h"


/***************************************************************************
Expand Down
1 change: 1 addition & 0 deletions storage/innobase/include/srv0mon.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Created 12/15/2009 Jimmy Yang
#endif /* __STDC_LIMIT_MACROS */

#include <stdint.h>
#include "my_atomic.h"

/** Possible status values for "mon_status" in "struct monitor_value" */
enum monitor_running_status {
Expand Down
1 change: 1 addition & 0 deletions storage/maria/lockman.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
#include <my_sys.h>
#include <my_bit.h>
#include <lf.h>
#include "my_cpu.h"
#include "lockman.h"

/*
Expand Down
1 change: 1 addition & 0 deletions unittest/mysys/my_atomic-t.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */

#include "thr_template.c"
#include "my_atomic.h"

volatile uint32 b32;
volatile int32 c32;
Expand Down

0 comments on commit 5679a2b

Please sign in to comment.