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
cc8faec9
Commit
cc8faec9
authored
Mar 10, 2006
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include the system header file "pthread.h" even in a non-threaded build.
Fixes bug#15861
parent
ed507027
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
include/my_no_pthread.h
include/my_no_pthread.h
+24
-4
No files found.
include/my_no_pthread.h
View file @
cc8faec9
...
@@ -14,15 +14,34 @@
...
@@ -14,15 +14,34 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#if !defined(_my_no_pthread_h) && !defined(THREAD)
#define _my_no_pthread_h
/*
This block is to access some thread-related type definitions
even in builds which do not need thread functions,
as some variables (based on these types) are declared
even in non-threaded builds.
Case in point: 'mf_keycache.c'
*/
#if defined(__WIN__) || defined(OS2)
#elif defined(HAVE_UNIXWARE7_THREADS)
/* #include <thread.h> Currently, not relevant. Enable if needed. */
#else
/* Normal threads */
#include <pthread.h>
#endif
/* defined(__WIN__) */
/*
/*
This undefs some pthread mutex locks when one isn't using threads
This undefs some pthread mutex locks when one isn't using threads
to make thread safe code, that should also work in single thread
to make thread safe code, that should also work in single thread
environment, easier to use.
environment, easier to use.
*/
*/
#if !defined(_my_no_pthread_h) && !defined(THREAD)
#define _my_no_pthread_h
#define pthread_mutex_init(A,B)
#define pthread_mutex_init(A,B)
#define pthread_mutex_lock(A)
#define pthread_mutex_lock(A)
#define pthread_mutex_unlock(A)
#define pthread_mutex_unlock(A)
...
@@ -32,4 +51,5 @@
...
@@ -32,4 +51,5 @@
#define rw_wrlock(A)
#define rw_wrlock(A)
#define rw_unlock(A)
#define rw_unlock(A)
#define rwlock_destroy(A)
#define rwlock_destroy(A)
#endif
#endif
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