aboutsummaryrefslogtreecommitdiff
path: root/arm_compute
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute')
-rw-r--r--arm_compute/runtime/Scheduler.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/arm_compute/runtime/Scheduler.h b/arm_compute/runtime/Scheduler.h
index 481e5e9b60..7c83f86caa 100644
--- a/arm_compute/runtime/Scheduler.h
+++ b/arm_compute/runtime/Scheduler.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2017-2019, 2023 Arm Limited.
+ * Copyright (c) 2017-2019, 2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -72,24 +72,10 @@ public:
* @return true if the given scheduler type is supported. False otherwise.
*/
static bool is_available(Type t);
- /** Returns true if a scheduler has been set.
- *
- * @return true if a scheduler has been set. False otherwise.
- */
- static bool is_set();
- /** Returns number of threads from scheduler if scheduler is set, otherwise queries CPUInfo.
- *
- * @return number of threads from scheduler if scheduler is set, otherwise queries CPUInfo.
- */
- static unsigned int num_threads();
private:
- static Type _scheduler_type;
-#ifndef ARM_COMPUTE_THREAD_LOCAL_SCHEDULER
- static std::shared_ptr<IScheduler> _custom_scheduler;
-#else // ARM_COMPUTE_THREAD_LOCAL_SCHEDULER
- static std::shared_ptr<IScheduler> thread_local _custom_scheduler;
-#endif // ARM_COMPUTE_THREAD_LOCAL_SCHEDULER
+ static Type _scheduler_type;
+ static std::shared_ptr<IScheduler> _custom_scheduler;
static std::map<Type, std::unique_ptr<IScheduler>> _schedulers;
Scheduler();