JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::MessageQueue Class Reference

#include <juce_MessageQueue_mac.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 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(), ~MessageQueue(), and wakeUp().

◆ runLoopSource

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

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


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