openMSX
Functions
openmsx::Thread Namespace Reference

Functions

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

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 9 of file Thread.cc.