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