#include <Helpers.h>
Definition at line 34 of file Helpers.h.
◆ ContextSchedulerUser() [1/3]
Default Constructor.
- Parameters
-
[in] | ctx | Runtime context to track |
Definition at line 41 of file Helpers.h.
References ARM_COMPUTE_ERROR_ON, ContextSchedulerUser::operator=(), and RuntimeContext::scheduler().
42 : _ctx(ctx), _scheduler_to_use(
nullptr), _real_scheduler(
nullptr), _interceptor(
nullptr)
46 _scheduler_to_use = _real_scheduler;
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
IScheduler * scheduler() override
Scheduler accessor.
◆ ContextSchedulerUser() [2/3]
Prevent instances of this class from being copied (As this class contains pointers)
◆ ContextSchedulerUser() [3/3]
Default move constructor.
◆ intercept_scheduler()
void intercept_scheduler |
( |
std::unique_ptr< IScheduler > |
interceptor | ) |
|
|
inlinevirtual |
Intercept the scheduler used by.
- Parameters
-
interceptor | Intercept the scheduler used by the scheduler user. |
Implements ISchedulerUser.
Definition at line 58 of file Helpers.h.
References RuntimeContext::set_scheduler().
60 if(interceptor !=
nullptr)
62 _interceptor = std::move(interceptor);
63 _scheduler_to_use = _interceptor.get();
void set_scheduler(IScheduler *scheduler)
CPU Scheduler setter.
◆ operator=() [1/2]
◆ operator=() [2/2]
Default move assignment operator.
◆ restore_scheduler()
void restore_scheduler |
( |
| ) |
|
|
inlinevirtual |
◆ scheduler()
Real scheduler accessor.
- Returns
- The real scheduler
Implements ISchedulerUser.
Definition at line 73 of file Helpers.h.
75 return _real_scheduler;
The documentation for this class was generated from the following file: