[Scummvm-tracker] [ScummVM :: Bugs] #12649: SCUMM: Deadlock in Player_AD on quitting

ScummVM :: Bugs trac at scummvm.org
Sun Jun 20 16:58:58 UTC 2021


#12649: SCUMM: Deadlock in Player_AD on quitting
-------------------------+----------------------------
Reporter:  eriktorbjorn  |       Owner:  (none)
    Type:  defect        |      Status:  new
Priority:  normal        |   Component:  Engine: SCUMM
 Version:                |  Resolution:
Keywords:                |        Game:
-------------------------+----------------------------
Comment (by athrxx):

 It will be the same thing as usually: the mixer thread and the main thread
 locking each other up in different mutexes (here: Player_AD::_mutex and
 MixerImpl::_mutex).

 Whether something like this may happen in other SCUMM players will depend
 on whether they have mutexes of their own or not. If the player does not
 have an extra mutex you should be safe. But in case there is one you have
 to work around the issue carefully. Or even better: rewrite the mutex
 code, so the mutexes become globally accessible and the SCUMM AD player
 can simply use the MixerImpl::_mutex instead of its own thing.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12649#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list