OXYGENHUB
◆ main openmsx / src / thread / Thread.hh
344 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef THREAD_HH
2
#define THREAD_HH
3
4
namespace openmsx::Thread {
5
6
	// For debugging only
7
	/** Store ID of the main thread, should be called exactly once from
8
	  * the main thread.
9
	  */
10
	void setMainThread();
11
12
	/** Returns true when called from the main thread.
13
	  */
14
	[[nodiscard]] bool isMainThread();
15
16
} // namespace openmsx::Thread
17
18
#endif