1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00
Commit graph

156 commits

Author SHA1 Message Date
reuk
31a7c62baf
Windows: Fix and suppress some analysis warnings
This fixes warnings that are emitted when building with the `-analyze`
flag enabled.
2021-05-26 15:34:26 +01:00
Tom Poole
bfdda737a2 Projucer: Removed the live build 2021-05-14 12:54:07 +01:00
ed
11d872ea1b MessageMananger: Made dispatchNextMessageOnSystemQueue() accessible by internal code 2021-04-13 16:25:04 +01:00
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
Tom Poole
a9ad07a945 Use RAII for CFTypes 2021-03-25 15:48:35 +00:00
reuk
6bcf603f2c
AppDelegate: Ensure correct lifetime of static objects
Arranges declarations of objects with static storage duration to ensure
correct lifetimes.
2021-03-05 11:26:22 +00:00
ed
3754cadf55 Windows: Removed WinRT::ComSmartPtr and use existing class instead 2021-01-28 11:26:13 +00:00
reuk
8d5c27237e
MessageManager: Use RAII to simplify app delegate cleanup 2021-01-15 16:43:11 +00:00
ed
088e100c1f Narrowed the scoped of some undeclared Objective-C selector warnings 2020-12-10 12:48:42 +00:00
reuk
b27017a5e3
macOS: Initial support for macOS 11 and arm64 2020-07-08 09:58:00 +01:00
ed
d510b73cdf Normalised all whitespace before args in std::function 2020-06-05 09:37:49 +01:00
reuk
092bc44413
MinGW: Fix windows/gcc warnings 2020-05-11 11:28:28 +01:00
reuk
e13901d912 ClangCl: Silence code which warns when building on Windows with Clang 2020-04-27 10:22:06 +01:00
Tom Poole
894e7d2bd2 Updated all license headers 2020-04-23 17:30:39 +01:00
ed
de712ca02e Linux: Added support for building and hosting VST3 plug-ins 2020-04-16 12:18:49 +01:00
ed
8f3b9036d6 Added WinRT web view 2020-04-16 12:18:47 +01:00
ed
5d9ab42195 Linux: Revert c47c790 and instead defer modifications to the fdReadCallbacks vector when inside a read callback until after the callback has been executed 2020-03-23 14:38:09 +00:00
ed
c47c790f79 Linux: Use list instead of vector for file descriptor callback storage in internal message queue to fix issues when recursively adding or removing callbacks 2020-03-06 16:52:13 +00:00
ed
cda97c6593 Windows: Refactored the internal message queue to avoid hitting the message limit 2020-01-13 15:10:43 +00:00
ed
c46194d08b Windows: Fixed a deadlock that could occur when dispatching messages from the overflow queue 2019-12-06 16:57:09 +00:00
jules
9b64141c93 Small fix to use of JUCEApplicationBase::quit() in linux event thread code 2019-11-29 14:22:57 +00:00
ed
ce9bb8b605 Windows: Added an overflow buffer to the event loop to catch messages posted after hitting the PostMessage() limit 2019-11-08 18:11:27 +00:00
ed
b857f965ce Replaced select() calls with poll() 2019-10-07 14:41:18 +01:00
ed
2aed7b58fa Linux: Allow the event bit mask to be specified in LinuxEventLoop::registerFdCallback() 2019-09-06 14:54:36 +01:00
ed
164aac7efa Linux: Improved message queue performance 2019-08-13 14:01:52 +01:00
ed
012c7d00d2 Linux: Fix for high CPU load 2019-08-07 14:01:30 +01:00
ed
74c3901138 Linux: Fixed a bug that could cause the message queue to freeze up 2019-07-17 15:03:30 +01:00
ed
77e93e35e4 Linux: Set POLLOUT flag for fds to receive XShm completion events 2019-07-03 16:36:48 +01:00
ed
fd76cbc70d Linux: Refactored InternalMessageQueue
This commit simplifies the Linux event loop code and adds methods to allow arbitrary file descriptors to registered. Also adds a method to register external event loops to be used instead of JUCE's internal event loop.
2019-06-28 12:07:24 +01:00
Tom Poole
670f77f80c Fixed some Android compiler warnings 2019-06-06 16:50:12 +01:00
Tom Poole
16dd26649a Fixed some GCC compiler warnings and removed deprecated functions 2019-06-04 16:48:44 +01:00
jules
60cbac6a6d Improved CPU efficiency of MessageManager::runDispatchLoopUntil() on OSX 2019-04-02 14:31:23 +01:00
cesare
f0c1c4c6f5 Revert "Fix problem with milliseconds overflowing for long uptime on OSX"
This reverts commit 99afd933e0.
2019-02-19 10:14:02 +00:00
cesare
99afd933e0 Fix problem with milliseconds overflowing for long uptime on OSX 2019-02-18 18:43:25 +00:00
jules
218ddf1193 Avoided a wrap-around timeout error in runDispatchLoopUntil() 2019-02-18 18:08:34 +00:00
Tom Poole
bd07014dcc MacOS: Escaped " in the command line passed to anotherInstanceStarted 2019-02-11 13:58:29 +00:00
jules
cadac817c6 Enabled some more warning flags in Xcode, and fixed the problems they caused 2019-01-11 09:52:10 +00:00
ed
eaf0f990d4 Replaced all uses of static_cast<Type&&> with std::move 2018-11-28 17:29:20 +00:00
hogliux
008b7a9ab2 Re-structured the low-level Android native code
Please see the forum post "Re-structuring of JUCE’s low-level Android code" and the BREAKING-CHANGES.txt for more information.
2018-11-13 12:33:40 +00:00
Tom Poole
98def04379 WinRT: Added a dedicated ComPtr class 2018-10-25 16:12:45 +01:00
jules
cfc85445b5 Minor tidying up 2018-10-23 12:50:14 +01:00
Tom Poole
2a5e20a10a Tidied up some WinRT code 2018-10-22 12:11:50 +01:00
jules
5979288706 Added some macros for asserting when functions are called in an unsafe manner outside the message thread. 2018-10-16 17:39:54 +01:00
jules
768139a298 Added some free functions to help make XML parsing less verbose: parseXML() 2018-10-15 16:08:25 +01:00
jules
87042769b6 Tidied up some more old typedefs 2018-05-11 14:44:51 +01:00
ed
527625b699 Added support for building Unity native audio plugins on desktop platforms 2018-05-10 16:32:30 +01:00
Lukasz Kozakiewicz
772185f2b0 Add camera support for iOS and Android. 2018-04-25 18:54:04 +02:00
Tom Poole
ab863a6dc2 Replaced all usage of ScopedPointer with std::unique_ptr 2018-04-19 20:27:47 +01:00
Tom Poole
4229dc0a4f Made a lot of ScopedPointer usage conform to the std::unique_ptr interface 2018-04-10 18:34:20 +01:00
Lukasz Kozakiewicz
c90835eafc Android: do quit the app when calling JUCEApplicationBase::quit(), rather than just placing it in the background (same as on iOS). 2018-01-31 18:45:25 +01:00