JUCE  v5.1.1-3-g1a0b28c73
JUCE API
MessageQueue Class Reference

#include <juce_osx_MessageQueue.h>

Collaboration diagram for 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()

MessageQueue::MessageQueue ( )
inline

◆ ~MessageQueue()

MessageQueue::~MessageQueue ( )
inlinenoexcept

References runLoop, and runLoopSource.

Member Function Documentation

◆ deliverNextMessage()

◆ post()

◆ runLoopCallback()

void MessageQueue::runLoopCallback ( )
inlineprivatenoexcept

References deliverNextMessage(), and wakeUp().

Referenced by runLoopSourceCallback().

◆ runLoopSourceCallback()

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

References runLoopCallback().

Referenced by MessageQueue().

◆ wakeUp()

void MessageQueue::wakeUp ( )
inlineprivatenoexcept

Referenced by post(), and runLoopCallback().

Member Data Documentation

◆ messages

Referenced by post().

◆ runLoop

CFRunLoopRef MessageQueue::runLoop
private

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

◆ runLoopSource

CFRunLoopSourceRef MessageQueue::runLoopSource
private

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


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