Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ba012305
Commit
ba012305
authored
Dec 20, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
cd94452e
5bce1e06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/my_atomic.h
include/my_atomic.h
+5
-5
No files found.
include/my_atomic.h
View file @
ba012305
...
@@ -68,11 +68,12 @@
...
@@ -68,11 +68,12 @@
#include "atomic/nolock.h"
#include "atomic/nolock.h"
#endif
#endif
#ifndef MY_ATOMICS_MADE
#ifndef MY_ATOMIC_NOLOCK
#ifndef make_atomic_cas_body
/* nolock.h was not able to generate even a CAS function, fall back */
/* nolock.h was not able to generate even a CAS function, fall back */
#include "atomic/rwlock.h"
#include "atomic/rwlock.h"
#else
#endif
#ifndef MY_ATOMICS_MADE
/* define missing functions by using the already generated ones */
/* define missing functions by using the already generated ones */
#ifndef make_atomic_add_body
#ifndef make_atomic_add_body
#define make_atomic_add_body(S) \
#define make_atomic_add_body(S) \
...
@@ -95,7 +96,6 @@
...
@@ -95,7 +96,6 @@
#define make_atomic_store_body(S) \
#define make_atomic_store_body(S) \
(void)(my_atomic_fas ## S (a, v));
(void)(my_atomic_fas ## S (a, v));
#endif
#endif
#endif
/*
/*
transparent_union doesn't work in g++
transparent_union doesn't work in g++
...
@@ -287,7 +287,7 @@ make_atomic_store(ptr)
...
@@ -287,7 +287,7 @@ make_atomic_store(ptr)
#undef make_atomic_load_body
#undef make_atomic_load_body
#undef make_atomic_store_body
#undef make_atomic_store_body
#undef make_atomic_fas_body
#undef make_atomic_fas_body
#endif
/* MY_ATOMICS_MADE */
#endif
#undef intptr
#undef intptr
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment