1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added some macros for asserting when functions are called in an unsafe manner outside the message thread.

This commit is contained in:
jules 2018-10-16 17:25:52 +01:00
parent 482d87e2db
commit 5979288706
29 changed files with 115 additions and 69 deletions

View file

@ -642,7 +642,7 @@ void AudioThumbnail::saveTo (OutputStream& output) const
//==============================================================================
bool AudioThumbnail::setDataSource (LevelDataSource* newSource)
{
jassert (MessageManager::getInstance()->currentThreadHasLockedMessageManager());
JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED
numSamplesFinished = 0;