Exemplo n.º 1
0
//==============================================================================
void MessageManager::MessageBase::post()
{
    MessageManager* const mm = MessageManager::instance;
	
    if (mm == nullptr || mm->quitMessagePosted || ! postMessageToSystemQueue (this))
        Ptr deleter (this); // (this will delete messages that were just created with a 0 ref count)
}
Exemplo n.º 2
0
void MessageManager::postMessageToQueue (Message* const message)
{
    if (quitMessagePosted || ! postMessageToSystemQueue (message))
        Message::Ptr deleter (message); // (this will delete messages that were just created with a 0 ref count)
}