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
d82bed47
Commit
d82bed47
authored
May 22, 2007
by
malff/marcsql@weblab.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build break cleanup
parent
1edeae91
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
15 deletions
+11
-15
include/config-win.h
include/config-win.h
+0
-9
include/my_pthread.h
include/my_pthread.h
+8
-0
sql/event_queue.cc
sql/event_queue.cc
+3
-5
tests/mysql_client_test.c
tests/mysql_client_test.c
+0
-1
No files found.
include/config-win.h
View file @
d82bed47
...
@@ -411,16 +411,7 @@ inline double ulonglong2double(ulonglong value)
...
@@ -411,16 +411,7 @@ inline double ulonglong2double(ulonglong value)
#ifdef __NT__
/* This should also work on Win98 but .. */
#ifdef __NT__
/* This should also work on Win98 but .. */
#define thread_safe_add(V,C,L) InterlockedExchangeAdd((long*) &(V),(C))
#define thread_safe_add(V,C,L) InterlockedExchangeAdd((long*) &(V),(C))
#define thread_safe_sub(V,C,L) InterlockedExchangeAdd((long*) &(V),-(long) (C))
#define thread_safe_sub(V,C,L) InterlockedExchangeAdd((long*) &(V),-(long) (C))
#define statistic_add(V,C,L) thread_safe_add((V),(C),(L))
#else
#define thread_safe_add(V,C,L) \
pthread_mutex_lock((L)); (V)+=(C); pthread_mutex_unlock((L));
#define thread_safe_sub(V,C,L) \
pthread_mutex_lock((L)); (V)-=(C); pthread_mutex_unlock((L));
#define statistic_add(V,C,L) (V)+=(C)
#endif
#endif
#define statistic_increment(V,L) thread_safe_increment((V),(L))
#define statistic_decrement(V,L) thread_safe_decrement((V),(L))
#define shared_memory_buffer_length 16000
#define shared_memory_buffer_length 16000
#define default_shared_memory_base_name "MYSQL"
#define default_shared_memory_base_name "MYSQL"
...
...
include/my_pthread.h
View file @
d82bed47
...
@@ -722,17 +722,25 @@ extern uint thd_lib_detected;
...
@@ -722,17 +722,25 @@ extern uint thd_lib_detected;
Warning:
Warning:
When compiling without threads, this file is not included.
When compiling without threads, this file is not included.
See the *other* declarations of thread_safe_xxx in include/my_global.h
See the *other* declarations of thread_safe_xxx in include/my_global.h
Second warning:
See include/config-win.h, for yet another implementation.
*/
*/
#ifdef THREAD
#ifdef THREAD
#ifndef thread_safe_increment
#define thread_safe_increment(V,L) \
#define thread_safe_increment(V,L) \
(pthread_mutex_lock((L)), (V)++, pthread_mutex_unlock((L)))
(pthread_mutex_lock((L)), (V)++, pthread_mutex_unlock((L)))
#define thread_safe_decrement(V,L) \
#define thread_safe_decrement(V,L) \
(pthread_mutex_lock((L)), (V)--, pthread_mutex_unlock((L)))
(pthread_mutex_lock((L)), (V)--, pthread_mutex_unlock((L)))
#endif
#ifndef thread_safe_add
#define thread_safe_add(V,C,L) \
#define thread_safe_add(V,C,L) \
(pthread_mutex_lock((L)), (V)+=(C), pthread_mutex_unlock((L)))
(pthread_mutex_lock((L)), (V)+=(C), pthread_mutex_unlock((L)))
#define thread_safe_sub(V,C,L) \
#define thread_safe_sub(V,C,L) \
(pthread_mutex_lock((L)), (V)-=(C), pthread_mutex_unlock((L)))
(pthread_mutex_lock((L)), (V)-=(C), pthread_mutex_unlock((L)))
#endif
#endif
#endif
/*
/*
statistics_xxx functions are for non critical statistic,
statistics_xxx functions are for non critical statistic,
...
...
sql/event_queue.cc
View file @
d82bed47
...
@@ -73,16 +73,14 @@ Event_queue::Event_queue()
...
@@ -73,16 +73,14 @@ Event_queue::Event_queue()
:
next_activation_at
(
0
),
:
next_activation_at
(
0
),
mutex_last_locked_at_line
(
0
),
mutex_last_locked_at_line
(
0
),
mutex_last_unlocked_at_line
(
0
),
mutex_last_unlocked_at_line
(
0
),
mutex_last_attempted_lock_at_line
(
0
),
mutex_last_locked_in_func
(
"n/a"
),
mutex_last_locked_in_func
(
"n/a"
),
mutex_last_unlocked_in_func
(
"n/a"
),
mutex_last_unlocked_in_func
(
"n/a"
),
mutex_last_attempted_lock_in_func
(
"n/a"
),
mutex_last_attempted_lock_in_func
(
"n/a"
),
mutex_last_attempted_lock_at_line
(
0
),
mutex_queue_data_locked
(
FALSE
),
mutex_queue_data_locked
(
FALSE
),
mutex_queue_data_attempting_lock
(
FALSE
)
mutex_queue_data_attempting_lock
(
FALSE
),
waiting_on_cond
(
FALSE
)
{
{
mutex_last_unlocked_in_func
=
mutex_last_locked_in_func
=
mutex_last_attempted_lock_in_func
=
""
;
pthread_mutex_init
(
&
LOCK_event_queue
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
LOCK_event_queue
,
MY_MUTEX_INIT_FAST
);
pthread_cond_init
(
&
COND_queue_state
,
NULL
);
pthread_cond_init
(
&
COND_queue_state
,
NULL
);
}
}
...
...
tests/mysql_client_test.c
View file @
d82bed47
...
@@ -16080,7 +16080,6 @@ static void test_bug24179()
...
@@ -16080,7 +16080,6 @@ static void test_bug24179()
static
void
test_bug28075
()
static
void
test_bug28075
()
{
{
int
rc
;
int
rc
;
MYSQL_STMT
*
stmt
;
DBUG_ENTER
(
"test_bug28075"
);
DBUG_ENTER
(
"test_bug28075"
);
myheader
(
"test_bug28075"
);
myheader
(
"test_bug28075"
);
...
...
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