Skip to content

Commit

Permalink
AudioUnitManager: Add rationale for not using a mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Feb 25, 2024
1 parent f9cfd62 commit 440d1cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/effects/backends/audiounit/audiounitmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ class AudioUnitManager {
AudioUnitManager& operator=(const AudioUnitManager&) = delete;

/// Fetches the audio unit if already instantiated.
/// Non-blocking and thread-safe.
///
/// Non-blocking and thread-safe, since this method is intended to (also) be
/// called in a real-time context, e.g. from an audio thread, where we don't
/// want to e.g. block on a mutex.
AudioUnit _Nullable getAudioUnit();

private:
Expand Down

0 comments on commit 440d1cf

Please sign in to comment.