Thread.hh 330 B

12345678910111213141516171819
  1. #ifndef THREAD_HH
  2. #define THREAD_HH
  3. namespace openmsx::Thread {
  4. // For debugging only
  5. /** Store ID of the main thread, should be called exactly once from
  6. * the main thread.
  7. */
  8. void setMainThread();
  9. /** Returns true when called from the main thread.
  10. */
  11. bool isMainThread();
  12. } // namespace openmsx::Thread
  13. #endif