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

Windows: Removed some VS2013 workarounds

This commit is contained in:
Tom Poole 2019-07-11 14:48:49 +01:00
parent ec43e11abc
commit 79d3e8b3f5
23 changed files with 45 additions and 290 deletions

View file

@ -273,8 +273,8 @@ bool MessageManager::existsAndIsCurrentThread() noexcept
struct MessageManager::Lock::BlockingMessage : public MessageManager::MessageBase
{
BlockingMessage (const MessageManager::Lock* parent) noexcept
// need a const_cast here as VS2013 doesn't like a const pointer to be in an atomic
: owner (const_cast<MessageManager::Lock*> (parent)) {}
: owner (parent)
{}
void messageCallback() override
{
@ -289,7 +289,7 @@ struct MessageManager::Lock::BlockingMessage : public MessageManager::MessageB
}
CriticalSection ownerCriticalSection;
Atomic<MessageManager::Lock*> owner;
Atomic<const MessageManager::Lock*> owner;
WaitableEvent releaseEvent;
JUCE_DECLARE_NON_COPYABLE (BlockingMessage)