openMSX
Functions
openmsx::Thread Namespace Reference

Functions

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

Function Documentation

◆ isMainThread()

bool openmsx::Thread::isMainThread ( )

◆ setMainThread()

void openmsx::Thread::setMainThread ( )

Store ID of the main thread, should be called exactly once from the main thread.

Definition at line 10 of file Thread.cc.