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:
Sergey Petrunya 2012-07-11 13:39:56 +04:00
commit f913ba7a60
3 changed files with 17 additions and 16 deletions

View file

@ -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