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
e3dde5f1
Commit
e3dde5f1
authored
Nov 19, 2004
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work around for compiler bug (5.0.2 build fails on octane2)
parent
57bdbd4e
Changes
1
Show 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 @
e3dde5f1
...
@@ -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