sim_thread_manager.h 477 B

12345678910111213141516171819202122232425262728
  1. #ifndef SIM_THREAD_MANAGER_H
  2. #define SIM_THREAD_MANAGER_H
  3. #include "sim_thread.h"
  4. #include "core_thread.h"
  5. class SimThreadManager
  6. {
  7. public:
  8. SimThreadManager();
  9. ~SimThreadManager();
  10. void spawnSimThreads();
  11. void quitSimThreads();
  12. void simThreadStartCallback();
  13. void simThreadExitCallback();
  14. private:
  15. SimThread *m_sim_threads;
  16. CoreThread *m_core_threads;
  17. Lock m_active_threads_lock;
  18. UInt32 m_active_threads;
  19. };
  20. #endif // SIM_THREAD_MANAGER