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:
parent
482d87e2db
commit
5979288706
29 changed files with 115 additions and 69 deletions
|
|
@ -324,7 +324,7 @@ void Timer::startTimer (int interval) noexcept
|
|||
{
|
||||
// If you're calling this before (or after) the MessageManager is
|
||||
// running, then you're not going to get any timer callbacks!
|
||||
jassert (MessageManager::getInstanceWithoutCreating() != nullptr);
|
||||
JUCE_ASSERT_MESSAGE_MANAGER_EXISTS
|
||||
|
||||
const TimerThread::LockType::ScopedLockType sl (TimerThread::lock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue