• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Site › Dolphin Patches (Archive) v
« Previous 1 … 3 4 5 6 7

Core/threads > Anti-deadlock hack without timers
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Core/threads > Anti-deadlock hack without timers
02-17-2010, 11:51 AM (This post was last modified: 02-17-2010, 01:51 PM by John Peterson.)
#1
John Peterson Offline
Member
***
Posts: 112
Threads: 16
Joined: May 2009
Problem

Same as in Core > Reliable anti-deadlock hack

Solution

Run Stop() from a thread so that the GUI doesn't lock-up in case of a deadlock. This means the users doesn't have to open the Task Manager to end Dolphin in case of a deadlock. Instead Dolphin can be closed in a normal way, when the user notices that the program has deadlocked. However, the program may crash when Dolphin is closed during a deadlock, in that case this solution is not much superior to a timer for WaitForSingleObject(), which was removed in r4803.

I definitely think this patch should be applied, and r4803 reverted, pending further debugging of the deadlocks.

However, I prefer the previous anti-deadlock hack because it should be 100% reliable and never allow a deadlock.


Attached Files
.patch   Anti-Deadlock Hack 2.patch (Size: 3.73 KB / Downloads: 373)
Find
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma