Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
f866008bc6
5 changed files with 14 additions and 18 deletions
  1. +10
    -14
      extras/audio plugins/wrapper/formats/VST/juce_VstWrapper.cpp
  2. +1
    -1
      juce_amalgamated.cpp
  3. +1
    -1
      juce_amalgamated.h
  4. +1
    -1
      src/juce_appframework/events/juce_MessageManager.cpp
  5. +1
    -1
      src/juce_appframework/events/juce_MessageManager.h

+ 10
- 14
extras/audio plugins/wrapper/formats/VST/juce_VstWrapper.cpp View File

@@ -210,15 +210,8 @@ public:
~SharedMessageThread()
{
signalThreadShouldExit();
const int quitMessageId = 0xfffff321;
Message* const m = new Message (quitMessageId, 1, 0, 0);
if (! juce_postMessageToSystemQueue (m))
delete m;
JUCEApplication::quit();
waitForThreadToExit (5000);
clearSingletonInstance();
}
@@ -226,11 +219,10 @@ public:
{
MessageManager* const messageManager = MessageManager::getInstance();
const int originalThreadId = messageManager->getCurrentMessageThread();
messageManager->setCurrentMessageThread (getThreadId());
const int64 originalThreadId = messageManager->getCurrentMessageThread();
messageManager->setCurrentMessageThread (Thread::getCurrentThreadId());
while (! threadShouldExit()
&& messageManager->dispatchNextMessage())
while ((! threadShouldExit()) && messageManager->runDispatchLoopUntil (250))
{
}
@@ -238,9 +230,8 @@ public:
}
juce_DeclareSingleton (SharedMessageThread, false)
};
};
juce_ImplementSingleton (SharedMessageThread);
#endif
@@ -444,6 +435,10 @@ public:
{
if (editorComp == 0)
{
#if JUCE_LINUX
const MessageManagerLock mml;
#endif
AudioProcessorEditor* const ed = filter->createEditorIfNeeded();
if (ed != 0)
@@ -451,6 +446,7 @@ public:
else
cEffect.flags &= ~effFlagsHasEditor;
filter->editorBeingDeleted (ed);
delete ed;
}


+ 1
- 1
juce_amalgamated.cpp View File

@@ -35941,7 +35941,7 @@ bool MessageManager::isThisTheMessageThread() const throw()
return Thread::getCurrentThreadId() == messageThreadId;
}

void MessageManager::setCurrentMessageThread (const int threadId) throw()
void MessageManager::setCurrentMessageThread (const int64 threadId) throw()
{
messageThreadId = threadId;
}


+ 1
- 1
juce_amalgamated.h View File

@@ -37274,7 +37274,7 @@ public:
(Best to ignore this method unless you really know what you're doing..)
@see getCurrentMessageThread
*/
void setCurrentMessageThread (const int threadId) throw();
void setCurrentMessageThread (const int64 threadId) throw();

/** Returns the ID of the current message thread, as set by setCurrentMessageThread().



+ 1
- 1
src/juce_appframework/events/juce_MessageManager.cpp View File

@@ -177,7 +177,7 @@ bool MessageManager::isThisTheMessageThread() const throw()
return Thread::getCurrentThreadId() == messageThreadId;
}
void MessageManager::setCurrentMessageThread (const int threadId) throw()
void MessageManager::setCurrentMessageThread (const int64 threadId) throw()
{
messageThreadId = threadId;
}


+ 1
- 1
src/juce_appframework/events/juce_MessageManager.h View File

@@ -107,7 +107,7 @@ public:
(Best to ignore this method unless you really know what you're doing..)
@see getCurrentMessageThread
*/
void setCurrentMessageThread (const int threadId) throw();
void setCurrentMessageThread (const int64 threadId) throw();
/** Returns the ID of the current message thread, as set by setCurrentMessageThread().


Loading…
Cancel
Save