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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b7ae32a0
Commit
b7ae32a0
authored
Nov 19, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/cps/mysql/trees/mysql-5.0
parents
f39d77fd
02201d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
server-tools/instance-manager/thread_repository.cc
server-tools/instance-manager/thread_repository.cc
+3
-2
No files found.
server-tools/instance-manager/thread_repository.cc
View file @
b7ae32a0
...
@@ -148,10 +148,11 @@ void Thread_repository::deliver_shutdown()
...
@@ -148,10 +148,11 @@ void Thread_repository::deliver_shutdown()
{
{
struct
timespec
shutdown_time
;
struct
timespec
shutdown_time
;
set_timespec
(
shutdown_time
,
1
);
set_timespec
(
shutdown_time
,
1
);
Thread_info
*
info
;
pthread_mutex_lock
(
&
LOCK_thread_repository
);
pthread_mutex_lock
(
&
LOCK_thread_repository
);
shutdown_in_progress
=
true
;
shutdown_in_progress
=
true
;
for
(
Thread_info
*
info
=
head
.
next
;
info
!=
&
head
;
info
=
info
->
next
)
for
(
info
=
head
.
next
;
info
!=
&
head
;
info
=
info
->
next
)
{
{
pthread_kill
(
info
->
thread_id
,
THREAD_KICK_OFF_SIGNAL
);
pthread_kill
(
info
->
thread_id
,
THREAD_KICK_OFF_SIGNAL
);
/*
/*
...
@@ -173,7 +174,7 @@ void Thread_repository::deliver_shutdown()
...
@@ -173,7 +174,7 @@ void Thread_repository::deliver_shutdown()
so this time everybody should be informed (presumably each worker can
so this time everybody should be informed (presumably each worker can
get CPU during shutdown_time.)
get CPU during shutdown_time.)
*/
*/
for
(
Thread_info
*
info
=
head
.
next
;
info
!=
&
head
;
info
=
info
->
next
)
for
(
info
=
head
.
next
;
info
!=
&
head
;
info
=
info
->
next
)
{
{
pthread_kill
(
info
->
thread_id
,
THREAD_KICK_OFF_SIGNAL
);
pthread_kill
(
info
->
thread_id
,
THREAD_KICK_OFF_SIGNAL
);
if
(
info
->
current_cond
)
if
(
info
->
current_cond
)
...
...
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