Re: [java-gnome-hackers] Ugly deadlock with Dialog.run()
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2010-08-11 05:54:55
|
On Wed, 2010-08-11 at 10:44 +1000, Andrew Cowie wrote: > Or maybe > > 4. Write our own run() I had a preliminary try at it; see attached. The idiom is pretty common; little inner class handler with a field so we can capture a value and return it. By itself, this doesn't fix our lock problem. But I thought I'd show it to you in case it caused you to think of anywhere interesting to go from here. Obviously the fact that we are iterating the real [outer] main loop rather than creating a(n implicit) new inner one is what is different compared to the real gtk_dialog_run(). Maybe that alone will help? Someone with a threaded program that demonstrates the bug will need to test that... Attached is a bundle, so if you want to merge & try it, go ahead :) AfC Sydney |