openMSX
Thread.hh
Go to the documentation of this file.
1 #ifndef THREAD_HH
2 #define THREAD_HH
3 
4 namespace openmsx::Thread {
5 
6  // For debugging only
10  void setMainThread();
11 
14  bool isMainThread();
15 
16 } // namespace openmsx::Thread
17 
18 #endif
void setMainThread()
Store ID of the main thread, should be called exactly once from the main thread.
Definition: Thread.cc:9
bool isMainThread()
Returns true when called from the main thread.
Definition: Thread.cc:15