JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MessageQueue Class Reference

#include <juce_osx_MessageQueue.h>

Collaboration diagram for juce::MessageQueue:

Public Member Functions

 MessageQueue ()
 
 ~MessageQueue () noexcept
 
void post (MessageManager::MessageBase *const message)
 

Private Member Functions

bool deliverNextMessage ()
 
void runLoopCallback () noexcept
 
void wakeUp () noexcept
 

Static Private Member Functions

static void runLoopSourceCallback (void *info) noexcept
 

Private Attributes

ReferenceCountedArray< MessageManager::MessageBase, CriticalSectionmessages
 
CFRunLoopRef runLoop
 
CFUniquePtr< CFRunLoopSourceRef > runLoopSource
 

Constructor & Destructor Documentation

◆ MessageQueue()

juce::MessageQueue::MessageQueue ( )
inline

◆ ~MessageQueue()

juce::MessageQueue::~MessageQueue ( )
inlinenoexcept

References runLoop, and runLoopSource.

Member Function Documentation

◆ deliverNextMessage()

bool juce::MessageQueue::deliverNextMessage ( )
inlineprivate

◆ post()

void juce::MessageQueue::post ( MessageManager::MessageBase *const  message)
inline

References juce::gl::message, messages, and wakeUp().

◆ runLoopCallback()

void juce::MessageQueue::runLoopCallback ( )
inlineprivatenoexcept

References deliverNextMessage(), and wakeUp().

Referenced by runLoopSourceCallback().

◆ runLoopSourceCallback()

static void juce::MessageQueue::runLoopSourceCallback ( void *  info)
inlinestaticprivatenoexcept

References runLoopCallback().

Referenced by MessageQueue().

◆ wakeUp()

void juce::MessageQueue::wakeUp ( )
inlineprivatenoexcept

References runLoop, and runLoopSource.

Referenced by post(), and runLoopCallback().

Member Data Documentation

◆ messages

ReferenceCountedArray<MessageManager::MessageBase, CriticalSection> juce::MessageQueue::messages
private

Referenced by deliverNextMessage(), and post().

◆ runLoop

CFRunLoopRef juce::MessageQueue::runLoop
private

Referenced by MessageQueue(), wakeUp(), and ~MessageQueue().

◆ runLoopSource

CFUniquePtr<CFRunLoopSourceRef> juce::MessageQueue::runLoopSource
private

Referenced by MessageQueue(), wakeUp(), and ~MessageQueue().


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