1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00
JUCE/modules/juce_events/messages
reuk 33e81616ad
MessageManager: Improve thread safety of Lock type
Previously, the following sequence of events was possible:

Background thread                   Main thread
------------------------------------------------------------------------
Lock::tryAcquire()
    Run to blockingMessage->post()

                                    BlockingMessage::messageCallback()
                                        Run to abortWait.set (1)

Lock::tryAcquire()
    Exit through return true

Lock::~Lock()
    Destroy memory used for Lock

                                    BlockingMessage::messageCallback()
                                        Execute lockedEvent.signal()
                                        Memory already freed, crash
2023-05-02 19:37:47 +01:00
..
juce_ApplicationBase.cpp CMake: Add embedded Linux subprocess for WebView support 2023-03-02 17:49:34 +00:00
juce_ApplicationBase.h Update copyright banners 2022-04-04 12:36:32 +01:00
juce_CallbackMessage.h Update copyright banners 2022-04-04 12:36:32 +01:00
juce_DeletedAtShutdown.cpp Update copyright banners 2022-04-04 12:36:32 +01:00
juce_DeletedAtShutdown.h Update copyright banners 2022-04-04 12:36:32 +01:00
juce_Initialisation.h Update copyright banners 2022-04-04 12:36:32 +01:00
juce_Message.h Update copyright banners 2022-04-04 12:36:32 +01:00
juce_MessageListener.cpp Update copyright banners 2022-04-04 12:36:32 +01:00
juce_MessageListener.h Update copyright banners 2022-04-04 12:36:32 +01:00
juce_MessageManager.cpp MessageManager: Improve thread safety of Lock type 2023-05-02 19:37:47 +01:00
juce_MessageManager.h MessageManager: Improve thread safety of Lock type 2023-05-02 19:37:47 +01:00
juce_MountedVolumeListChangeDetector.h Update copyright banners 2022-04-04 12:36:32 +01:00
juce_NotificationType.h Update copyright banners 2022-04-04 12:36:32 +01:00