JUCE  v6.1.6 (6.0.8-1114)
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

class  Clock
 

Public Member Functions

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

Public Attributes

HighResolutionTimerowner
 
std::atomic< intperiodMs { 0 }
 

Static Private Member Functions

static bool setThisThreadToRealtime (uint64 periodMs)
 

Private Attributes

std::condition_variable stopCond
 
std::thread thread
 
std::mutex timerMutex
 

Constructor & Destructor Documentation

◆ Pimpl()

juce::HighResolutionTimer::Pimpl::Pimpl ( HighResolutionTimer t)
inlineexplicit

◆ ~Pimpl()

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

References jassert, periodMs, and stop().

Member Function Documentation

◆ setThisThreadToRealtime()

static bool juce::HighResolutionTimer::Pimpl::setThisThreadToRealtime ( uint64  periodMs)
inlinestaticprivate

◆ start()

◆ stop()

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

References juce::gl::id, periodMs, stopCond, thread, and timerMutex.

Referenced by start(), and ~Pimpl().

Member Data Documentation

◆ owner

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

Referenced by start().

◆ periodMs

std::atomic<int> juce::HighResolutionTimer::Pimpl::periodMs { 0 }

◆ stopCond

std::condition_variable juce::HighResolutionTimer::Pimpl::stopCond
private

Referenced by start(), and stop().

◆ thread

std::thread juce::HighResolutionTimer::Pimpl::thread
private

◆ timerMutex

std::mutex juce::HighResolutionTimer::Pimpl::timerMutex
private

Referenced by start(), and stop().


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