JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce_MessageManager.h File Reference
This graph shows which files directly or indirectly include this file:

Classes

class  juce::MessageManager
 This class is in charge of the application's event-dispatch loop. More...
 
class  juce::MessageManager::Lock
 A lock you can use to lock the message manager. More...
 
class  juce::MessageManager::MessageBase
 Internal class used as the base class for all message objects. More...
 
class  juce::MessageManagerLock
 Used to make sure that the calling thread has exclusive access to the message loop. More...
 

Namespaces

 juce
 

Macros

#define JUCE_ASSERT_MESSAGE_MANAGER_EXISTS   jassert (juce::MessageManager::getInstanceWithoutCreating() != nullptr);
 This macro is used to catch unsafe use of functions which expect to not be called outside the lifetime of the MessageManager. More...
 
#define JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED   jassert (juce::MessageManager::existsAndIsLockedByCurrentThread());
 This macro is used to catch unsafe use of functions which expect to only be called on the message thread, or when a MessageManagerLock is in place. More...
 
#define JUCE_ASSERT_MESSAGE_THREAD   jassert (juce::MessageManager::existsAndIsCurrentThread());
 This macro is used to catch unsafe use of functions which expect to only be called on the message thread. More...
 

Typedefs

using juce::MessageCallbackFunction = void *(void *userData)
 See MessageManager::callFunctionOnMessageThread() for use of this function type. More...
 

Macro Definition Documentation

◆ JUCE_ASSERT_MESSAGE_MANAGER_EXISTS

#define JUCE_ASSERT_MESSAGE_MANAGER_EXISTS   jassert (juce::MessageManager::getInstanceWithoutCreating() != nullptr);

This macro is used to catch unsafe use of functions which expect to not be called outside the lifetime of the MessageManager.

◆ JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED

#define JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED   jassert (juce::MessageManager::existsAndIsLockedByCurrentThread());

This macro is used to catch unsafe use of functions which expect to only be called on the message thread, or when a MessageManagerLock is in place.

It will also fail if you try to use the function before the message manager has been created, which could happen if you accidentally invoke it during a static constructor.

◆ JUCE_ASSERT_MESSAGE_THREAD

#define JUCE_ASSERT_MESSAGE_THREAD   jassert (juce::MessageManager::existsAndIsCurrentThread());

This macro is used to catch unsafe use of functions which expect to only be called on the message thread.

It will also fail if you try to use the function before the message manager has been created, which could happen if you accidentally invoke it during a static constructor.