Re: strange deadlock ...



Hi Havoc,

On 17 Jul 2001, Havoc Pennington wrote:
> Michael Meeks <michael ximian com> writes: 
> > 	The thing is - that this is not a multi-threaded program, it is
> > merely a single thread. Simply run libbonoboui/tests/test-selector[1] and
> > click 'get Id' and hey presto.
> 
> Right, but someone is calling g_thread_init() so locking is still
> done. (There's no way to say "if (> 1 thread exists)")

	I appreciate that :-) the thing is, that this is not some whacked
out, unusual race condition - caused by some obscure use of threading, 
that will not affect anyone.

	On the contrary, it will cripple anyone using threads and Gtk+ eg.
try adding a g_thread_init to gtk-demo, and then pressing "Dialog and
Message Boxes" and then any button [ to cause a re-entering of the glib
mainloop through gtk_dialog_run ].

	Bang, deadlock.

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]