Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::editor::Threads Class Referencefinal

#include <Threads.h>

Inheritance diagram for ph::editor::Threads:

Static Public Member Functions

static bool isOnMainThread ()
 Whether current thread is the thread that called main().
 
static bool isOnRenderThread ()
 Whether current thread is the rendering thread.
 
static RenderThread & getRenderThread ()
 Get the rendering thread. It is an error to call this method when the application is not running.
 

Friends

class Program
 
class Application
 

Member Function Documentation

◆ getRenderThread()

RenderThread & ph::editor::Threads::getRenderThread ( )
inlinestatic

Get the rendering thread. It is an error to call this method when the application is not running.

Note
Thread-safe in application main loop.

◆ isOnMainThread()

bool ph::editor::Threads::isOnMainThread ( )
inlinestatic

Whether current thread is the thread that called main().

Note
Thread-safe in application main loop.

◆ isOnRenderThread()

bool ph::editor::Threads::isOnRenderThread ( )
inlinestatic

Whether current thread is the rendering thread.

Note
Thread-safe in application main loop.

Friends And Related Symbol Documentation

◆ Application

friend class Application
friend

◆ Program

friend class Program
friend

The documentation for this class was generated from the following files: