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
ebd3745c
Commit
ebd3745c
authored
Jul 31, 2004
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
8c1cb889
2532adf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sql/sql_class.h
sql/sql_class.h
+9
-1
No files found.
sql/sql_class.h
View file @
ebd3745c
...
@@ -535,11 +535,19 @@ class THD :public ilink
...
@@ -535,11 +535,19 @@ class THD :public ilink
void
close_active_vio
();
void
close_active_vio
();
#endif
#endif
void
awake
(
bool
prepare_to_die
);
void
awake
(
bool
prepare_to_die
);
/*
For enter_cond() / exit_cond() to work the mutex must be got before
enter_cond() but released before exit_cond() (in 4.1, assertions will soon
ensure this). Use must be:
lock mutex; enter_cond(); ...; unlock mutex; exit_cond().
If you don't do it this way, you will get a deadlock if another thread is
doing a THD::awake() on you.
*/
inline
const
char
*
enter_cond
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
,
inline
const
char
*
enter_cond
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
,
const
char
*
msg
)
const
char
*
msg
)
{
{
const
char
*
old_msg
=
proc_info
;
const
char
*
old_msg
=
proc_info
;
safe_mutex_assert_owner
(
mutex
);
mysys_var
->
current_mutex
=
mutex
;
mysys_var
->
current_mutex
=
mutex
;
mysys_var
->
current_cond
=
cond
;
mysys_var
->
current_cond
=
cond
;
proc_info
=
msg
;
proc_info
=
msg
;
...
...
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