openMSX
Namespaces | Functions
Thread.cc File Reference
#include "Thread.hh"
#include <cassert>
#include <thread>
Include dependency graph for Thread.cc:

Go to the source code of this file.

Namespaces

namespace  openmsx
 This file implemented 3 utility functions:
 
namespace  openmsx::Thread
 

Functions

void openmsx::Thread::setMainThread ()
 Store ID of the main thread, should be called exactly once from the main thread.
 
bool openmsx::Thread::isMainThread ()
 Returns true when called from the main thread.