LMMS
Loading...
Searching...
No Matches
juce::HighResolutionTimer::Pimpl Struct Reference

#include <juce_posix_SharedCode.h>

Classes

class  Clock

Public Member Functions

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

Public Attributes

HighResolutionTimerowner
std::atomic< intperiodMs { 0 }
int periodMs = 0

Static Private Member Functions

static bool setThisThreadToRealtime (uint64 periodMs)
static void STDMETHODCALLTYPE callbackFunction (UINT, UINT, DWORD_PTR userInfo, DWORD_PTR, DWORD_PTR)

Private Attributes

std::thread thread
std::condition_variable stopCond
std::mutex timerMutex
unsigned int timerID

Constructor & Destructor Documentation

◆ Pimpl() [1/2]

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

◆ ~Pimpl() [1/2]

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

◆ Pimpl() [2/2]

juce::HighResolutionTimer::Pimpl::Pimpl ( HighResolutionTimer & t)
inlinenoexcept

◆ ~Pimpl() [2/2]

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

Member Function Documentation

◆ callbackFunction()

void STDMETHODCALLTYPE juce::HighResolutionTimer::Pimpl::callbackFunction ( UINT ,
UINT ,
DWORD_PTR userInfo,
DWORD_PTR ,
DWORD_PTR  )
inlinestaticprivate

◆ setThisThreadToRealtime()

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

◆ start() [1/2]

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

◆ start() [2/2]

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

◆ stop() [1/2]

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

◆ stop() [2/2]

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

Member Data Documentation

◆ owner

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

◆ periodMs [1/2]

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

◆ periodMs [2/2]

int juce::HighResolutionTimer::Pimpl::periodMs = 0

◆ stopCond

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

◆ thread

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

◆ timerID

unsigned int juce::HighResolutionTimer::Pimpl::timerID
private

◆ timerMutex

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

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