[ scummvm-Patches-615737 ] Hack for IMuseGM threading problem

noreply at sourceforge.net noreply at sourceforge.net
Sat Sep 28 01:46:36 CEST 2002


Patches item #615737, was opened at 2002-09-27 18:46
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=615737&group_id=37116

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jamieson Christian (jamieson630)
Assigned to: Nobody/Anonymous (nobody)
Summary: Hack for IMuseGM threading problem

Initial Comment:
The included patch fixes a threading problem that 
occurs under -ewindows during complex musical 
passages. This problem was reported under Bug 
#601926 (random crashes in the DOTT #2 cutscene).

Frequent clearing and reallocating of Player objects 
causes numerous uninit() calls for all the Parts 
belonging to the Players. These calls clear the _player 
pointer for each Part. Because of threading issues, the 
Part objects may still be trying to conduct operations at 
the time that uninit() is called -- and some of those 
operations require the use of the _player pointer.

This patch is a hack to make sure that the _player 
pointer is validated on-the-spot each time that it's used. 
If it has been removed, an appropriate default value is 
substituted in place of whatever was being loaded from 
the Player object.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=615737&group_id=37116




More information about the Scummvm-tracker mailing list