SPH
Functions | Variables
CheckFunction.cpp File Reference
#include "thread/CheckFunction.h"
#include "common/Assert.h"
#include <thread>

Go to the source code of this file.

Functions

bool isMainThread ()
 Checks if the calling thread is the main thred. More...
 

Variables

NAMESPACE_SPH_BEGIN const std::thread::id MAIN_THREAD_ID = std::this_thread::get_id()
 

Function Documentation

◆ isMainThread()

bool isMainThread ( )

Checks if the calling thread is the main thred.

Definition at line 39 of file CheckFunction.cpp.

Variable Documentation

◆ MAIN_THREAD_ID

NAMESPACE_SPH_BEGIN const std::thread::id MAIN_THREAD_ID = std::this_thread::get_id()

Definition at line 7 of file CheckFunction.cpp.