1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules
reuk b952d0204e
FileChooser: Pump message thread in destructor
IFileDialog::Show and CoUninitialize both seem to require the main
message loop to be active and running when they are called. If we block
the message thread while calling these functions, we may cause a
deadlock.

The destructor of the Win32NativeFileChooser was blocking the message
thread until the background thread exited, but the background thread was
unable to make progress while the message thread was blocked.

To work around this issue, we now pump the message thread in the
destructor of the Win32NativeFileChooser. If a dialog is currently
active, this should allow it to exit gracefully.

Note that we cannot use MessageManager::runDispatchLoopUntil here:
- MessageManager::runDispatchLoopUntil will not process any messages if
  the quit message has been received, which could lead to deadlocks if the
  FileChooser is destroyed after the quit message has been posted.
- This function isn't defined when JUCE_MODAL_LOOPS_PERMITTED is disabled.
2021-04-07 16:24:38 +01:00
..
juce_analytics Fixed a data race in ThreadedAnalyticsDestination 2021-03-25 18:24:11 +00:00
juce_audio_basics ADSR: Fixed a test failure with small sustain lengths 2021-03-31 17:21:42 +01:00
juce_audio_devices Fixed some file permissions 2021-03-31 10:12:59 +01:00
juce_audio_formats VST3: Fixed a bug loading plug-ins 2021-03-26 10:31:45 +00:00
juce_audio_plugin_client Allow use of an external VST3 SDK on BSD 2021-04-01 08:39:25 +01:00
juce_audio_processors VST3: Add a new PluginDescription::uniqueId field 2021-04-07 15:14:20 +01:00
juce_audio_utils AudioProcessorPlayer: Resolve TSAN warnings 2021-03-31 12:10:51 +01:00
juce_blocks_basics Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_box2d Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_core Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_cryptography Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_data_structures Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_dsp Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_events FileChooser: Pump message thread in destructor 2021-04-07 16:24:38 +01:00
juce_graphics Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_gui_basics FileChooser: Pump message thread in destructor 2021-04-07 16:24:38 +01:00
juce_gui_extra Fixed some file permissions 2021-03-31 10:12:59 +01:00
juce_opengl Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_osc Bump version number to 6.0.8 2021-03-22 09:24:48 +00:00
juce_product_unlocking Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
juce_video Added preliminary support for FreeBSD 2021-03-29 14:16:46 +01:00
CMakeLists.txt Updated all license headers 2020-06-29 08:30:22 +01:00