mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 16:25:30 +02:00
MWL#182: Explain running statements: address review feedback
- Make THD::check_killed() an inline function which makes calls to non-inline functions only whern there are APC requests to be served.
This commit is contained in:
parent
725d76e1e8
commit
f913ba7a60
3 changed files with 17 additions and 16 deletions
|
|
@ -53,6 +53,15 @@ public:
|
|||
void disable();
|
||||
|
||||
void process_apc_requests();
|
||||
/*
|
||||
A lightweight function, intended to be used in frequent checks like this:
|
||||
|
||||
if (apc_target.have_requests()) apc_target.process_apc_requests()
|
||||
*/
|
||||
inline bool have_apc_requests()
|
||||
{
|
||||
return test(apc_calls);
|
||||
}
|
||||
|
||||
/* Functor class for calls you can schedule */
|
||||
class Apc_call
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue