#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.
42 : _ctx(ctx), _scheduler_to_use(
nullptr), _real_scheduler(
nullptr), _interceptor(
nullptr)
46 _scheduler_to_use = _real_scheduler;
References ARM_COMPUTE_ERROR_ON, and RuntimeContext::scheduler().
◆ 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.
60 if(interceptor !=
nullptr)
62 _interceptor = std::move(interceptor);
63 _scheduler_to_use = _interceptor.get();
References RuntimeContext::set_scheduler().
◆ operator=() [1/2]
Prevent instances of this class from being copied (As this class contains pointers)
◆ 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: