[haiku-commits] Re: haiku: hrev46012 - headers/private/screen_saver src/kits/screensaver src/preferences/screensaver

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 03 Sep 2013 09:10:25 +0200

Am 03/09/2013 01:45, schrieb jscipione@xxxxxxxxx:
d9acbaf: ScreenSaver: Timeout if window won't lock. Fixes #4260.
   If we fail to lock the window in the kInitialTickRate time, quit the thread.
   We were deadlocking causing #4260 because you could open several
   threads by moving through the screen saver list quickly all trying to lock
   the same window at the same time, classic deadlock.

That doesn't sound at all like a classical deadlock. If several threads are trying to lock a window, they will get their lock one after another.

Could you elaborate a bit more how the deadlock happens, and why this would be the solution to choose?

Bye,
   Axel.


Other related posts: