JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::HighResolutionTimer::Pimpl Struct Reference

#include <juce_posix_SharedCode.h>

Collaboration diagram for juce::HighResolutionTimer::Pimpl:

Classes

struct  Clock
 

Public Member Functions

 Pimpl (HighResolutionTimer &t)
 
 ~Pimpl ()
 
void start (int newPeriod)
 
void stop ()
 

Public Attributes

HighResolutionTimerowner
 
std::atomic< intperiodMs
 

Private Member Functions

void timerThread ()
 

Static Private Member Functions

static bool setThreadToRealtime (pthread_t thread, uint64 periodMs)
 
static void * timerThread (void *param)
 

Private Attributes

std::atomic< booldestroyThread { false }
 
std::atomic< boolisRunning { false }
 
pthread_cond_t stopCond
 
pthread_t thread = {}
 
pthread_mutex_t timerMutex
 

Constructor & Destructor Documentation

◆ Pimpl()

juce::HighResolutionTimer::Pimpl::Pimpl ( HighResolutionTimer t)
inline

◆ ~Pimpl()

juce::HighResolutionTimer::Pimpl::~Pimpl ( )
inline

References jassert.

Member Function Documentation

◆ setThreadToRealtime()

static bool juce::HighResolutionTimer::Pimpl::setThreadToRealtime ( pthread_t  thread,
uint64  periodMs 
)
inlinestaticprivate

◆ start()

void juce::HighResolutionTimer::Pimpl::start ( int  newPeriod)
inline

References jassertfalse.

◆ stop()

void juce::HighResolutionTimer::Pimpl::stop ( )
inline

◆ timerThread() [1/2]

static void* juce::HighResolutionTimer::Pimpl::timerThread ( void *  param)
inlinestaticprivate

◆ timerThread() [2/2]

Member Data Documentation

◆ destroyThread

std::atomic<bool> juce::HighResolutionTimer::Pimpl::destroyThread { false }
private

◆ isRunning

std::atomic<bool> juce::HighResolutionTimer::Pimpl::isRunning { false }
private

◆ owner

HighResolutionTimer& juce::HighResolutionTimer::Pimpl::owner

◆ periodMs

std::atomic<int> juce::HighResolutionTimer::Pimpl::periodMs

◆ stopCond

pthread_cond_t juce::HighResolutionTimer::Pimpl::stopCond
private

◆ thread

pthread_t juce::HighResolutionTimer::Pimpl::thread = {}
private

◆ timerMutex

pthread_mutex_t juce::HighResolutionTimer::Pimpl::timerMutex
private

The documentation for this struct was generated from the following file: