1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00
JUCE/modules
reuk 02b0b752ea 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-20 11:15:50 +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 Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_audio_formats Bump version number to 6.1.3 2021-12-08 15:26:08 +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-20 11:15:50 +00:00
juce_cryptography Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_data_structures Bump version number to 6.1.3 2021-12-08 15:26:08 +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 Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_gui_basics Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_gui_extra Bump version number to 6.1.3 2021-12-08 15:26:08 +00:00
juce_opengl Thread: Update macOS thread priority calculation 2021-12-20 11:15:50 +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