scheduler_static.h 382 B

123456789101112131415161718192021
  1. #ifndef __SCHEDULER_STATIC_H
  2. #define __SCHEDULER_STATIC_H
  3. #include "scheduler.h"
  4. #include <vector>
  5. class SchedulerStatic : public Scheduler
  6. {
  7. public:
  8. SchedulerStatic(ThreadManager *thread_manager);
  9. core_id_t threadCreate(thread_id_t);
  10. private:
  11. std::vector<bool> m_core_mask;
  12. core_id_t findFirstFreeMaskedCore();
  13. };
  14. #endif // __SCHEDULER_STATIC_H