JUCE  v5.4.1-191-g0ab5e696f
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
 
CFRunLoopSourceRef runLoopSource
 

Constructor & Destructor Documentation

◆ MessageQueue()

juce::MessageQueue::MessageQueue ( )
inline

◆ ~MessageQueue()

juce::MessageQueue::~MessageQueue ( )
inlinenoexcept

References runLoop, and runLoopSource.

Member Function Documentation

◆ deliverNextMessage()

◆ post()

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

References 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

Referenced by post(), and runLoopCallback().

Member Data Documentation

◆ messages

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

Referenced by post().

◆ runLoop

CFRunLoopRef juce::MessageQueue::runLoop
private

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

◆ runLoopSource

CFRunLoopSourceRef juce::MessageQueue::runLoopSource
private

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


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