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 48c6087faf Thread: Update macOS thread priority calculation
The Apple threading documentation [^1] says the following:

> The second argument to pthread_setschedparam is the desired policy,
  which can currently be one of SCHED_FIFO (first in, first out),
  SCHED_RR (round-robin), or SCHED_OTHER. The SCHED_OTHER policy is
  generally used for extra policies that are specific to a given
  operating system, and should thus be avoided when writing portable
  code.

This appears to differ from the policy semantics on Linux and BSD, where
FIFO and RR are both explicitly real-time policies.

Therefore, on Linux/BSD we only enable the RR policy if the requested
priority is 8 or higher. Meanwhile, on macOS, we map all thread
priorities (0 - 10) onto the RR policy with an appropriate priority.

[^1]: https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/scheduler/scheduler.html
2021-12-14 22:50:09 +00:00
..
juce_analytics Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_audio_basics Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_audio_devices ASIO: Include max size when adding supported buffer sizes 2021-12-13 12:56:15 +00:00
juce_audio_formats BufferingAudioReader: Clear buffer in timeout unit test 2021-12-14 11:46:04 +00:00
juce_audio_plugin_client Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_audio_processors Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_audio_utils Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_box2d Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_core Thread: Update macOS thread priority calculation 2021-12-14 22:50:09 +00:00
juce_cryptography Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_data_structures ValueTreePropertyWithDefault: Remove message thread dependency 2021-12-14 17:01:58 +00:00
juce_dsp Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_events Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_graphics macOS: Fix CGImage memory access violation on Monterey 2021-12-14 14:36:52 +00:00
juce_gui_basics macOS: Fix window icon NSImage leak 2021-12-14 20:54:31 +00:00
juce_gui_extra macOS: Fix CGImage memory access violation on Monterey 2021-12-14 14:36:52 +00:00
juce_opengl Thread: Update macOS thread priority calculation 2021-12-14 22:50:09 +00:00
juce_osc Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_product_unlocking Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_video Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
CMakeLists.txt BLOCKS: Remove juce_blocks_basics module 2021-05-19 16:53:01 +01:00