Skip to content

Commit

Permalink
SCI: update mutex comment
Browse files Browse the repository at this point in the history
(after turning _mutex into a reference to the mixers's mutex)
  • Loading branch information
athrxx authored and bluegr committed Jun 3, 2022
1 parent 2ef6e24 commit 2803adc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/sci/sound/music.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ class SciMusic : public Common::Serializable {
void saveLoadWithSerializer(Common::Serializer &ser) override;

// Mutex for music code. Used to guard access to the song playlist, to the
// MIDI parser and to the MIDI driver/player. Note that guarded code must NOT
// include references to the mixer, otherwise there will probably be situations
// where a deadlock can occur
// MIDI parser and to the MIDI driver/player. We use a reference to
// the mixer's internal mutex to avoid deadlocks which sometimes occur when
// different threads lock each other up in different mutexes.
Common::Mutex &_mutex;

protected:
Expand Down

0 comments on commit 2803adc

Please sign in to comment.