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
0e9a6468
Commit
0e9a6468
authored
Jan 30, 2007
by
jani/jamppa@production.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://localhost:5559
into production.mysql.com:/usersnfs/jamppa/mysql-4.0
parents
0b4ee9e5
b3523e39
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
include/my_pthread.h
include/my_pthread.h
+1
-0
mysys/my_pthread.c
mysys/my_pthread.c
+1
-0
mysys/my_thr_init.c
mysys/my_thr_init.c
+5
-0
No files found.
include/my_pthread.h
View file @
0e9a6468
...
...
@@ -683,6 +683,7 @@ extern pthread_t shutdown_th, main_th, signal_th;
#define THD_LIB_LT 4
extern
uint
thd_lib_detected
;
extern
uint
thr_client_alarm
;
/* statistics_xxx functions are for not essential statistic */
...
...
mysys/my_pthread.c
View file @
0e9a6468
...
...
@@ -32,6 +32,7 @@
#endif
uint
thd_lib_detected
;
uint
thr_client_alarm
;
#ifndef my_pthread_setprio
void
my_pthread_setprio
(
pthread_t
thread_id
,
int
prior
)
...
...
mysys/my_thr_init.c
View file @
0e9a6468
...
...
@@ -21,6 +21,7 @@
#include "mysys_priv.h"
#include <m_string.h>
#include <signal.h>
#ifdef THREAD
#ifdef USE_TLS
...
...
@@ -60,6 +61,10 @@ static uint get_thread_lib(void);
my_bool
my_thread_global_init
(
void
)
{
thd_lib_detected
=
get_thread_lib
();
if
(
thd_lib_detected
==
THD_LIB_LT
)
thr_client_alarm
=
SIGALRM
;
else
thr_client_alarm
=
SIGUSR1
;
if
(
pthread_key_create
(
&
THR_KEY_mysys
,
0
))
{
...
...
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