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
503294a2
Commit
503294a2
authored
Feb 10, 2011
by
Mikael Ronström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added setters to scheduler interface
parent
1d6945a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
sql/scheduler.h
sql/scheduler.h
+3
-1
sql/sql_class.cc
sql/sql_class.cc
+12
-2
No files found.
sql/scheduler.h
View file @
503294a2
...
...
@@ -96,8 +96,10 @@ class thd_scheduler
~
thd_scheduler
();
};
void
*
thd_get_scheduler
(
THD
*
thd
);
void
*
thd_get_scheduler_data
(
THD
*
thd
);
void
thd_set_scheduler_data
(
THD
*
thd
,
void
*
data
);
PSI_thread
*
thd_get_psi
(
THD
*
thd
);
void
thd_set_psi
(
THD
*
thd
,
PSI_thread
*
psi
);
extern
scheduler_functions
*
thread_scheduler
;
...
...
sql/sql_class.cc
View file @
503294a2
...
...
@@ -217,16 +217,26 @@ bool foreign_key_prefix(Key *a, Key *b)
** Thread specific functions
****************************************************************************/
void
*
thd_get_scheduler
(
THD
*
thd
)
void
*
thd_get_scheduler_data
(
THD
*
thd
)
{
return
thd
->
scheduler
.
data
;
}
PSI_thread
*
thd_get_psi
(
THD
*
thd
)
void
thd_set_scheduler_data
(
THD
*
thd
,
void
*
data
)
{
thd
->
scheduler
.
data
=
data
;
}
PSI_thread
*
thd_get_psi
(
THD
*
thd
)
{
return
thd
->
scheduler
.
m_psi
;
}
void
thd_set_psi
(
THD
*
thd
,
PSI_thread
*
psi
)
{
thd
->
scheduler
.
m_psi
=
psi
;
}
/*
The following functions form part of the C plugin API
*/
...
...
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