Date: Tue, 21 Jan 2003 19:19:38 +0100 From: Claudio Sacerdoti Coen To: lablgtk at kaba.or.jp Subject: GToolbox not thread safe? Message-ID: <20030121191938.A1749 at cs.unibo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I have to face the usual problem of combining threads and modal windows. Since the code of GMain.Main.main is not thread-aware (it never calls Thread.delay), I suppose that the right thing to do is using the (odd) pair of functions GtkThread.main () / GMain.Main.quit (). I checked the code and they share the GMain.Main.loops; thus everything should work fine. Am I doing something reasonable? If the answer is yes, I deduce that the code in GToolbox is not thread-safe (since it uses GMain.Main.main ()). Otherwise I deduce that GMain.Main.main () for nested Gtk loops works fine. But I can't understand why (and a quick test showed me exactly the opposite). TIA for any help. Regards, C.S.C. -- ---------------------------------------------------------------- Real name: Claudio Sacerdoti Coen PhD Student in Computer Science at University of Bologna E-mail: sacerdot@cs.unibo.it http://caristudenti.cs.unibo.it/~sacerdot ----------------------------------------------------------------