From: Claudio Sacerdoti Coen Date: Mon, 2 Oct 2006 16:22:13 +0000 (+0000) Subject: **** EXPERIMENTAL **** X-Git-Tag: 0.4.95@7852~951 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=baf2bf939ffa6b9bbba8c3f3d59737096e723d8d;p=helm.git **** EXPERIMENTAL **** The GUI of Matita is now thread-based. In principle Ctr-C works unreliably. In practice it works reasonably well. --- diff --git a/matita/matitaGui.ml b/matita/matitaGui.ml index 4f36938b5..af9984c1b 100644 --- a/matita/matitaGui.ml +++ b/matita/matitaGui.ml @@ -422,10 +422,13 @@ class gui () = develList#buttonsHbox#misc#set_sensitive true; source_view#set_editable true in - let locker f = + let locker f () = + let thread_main = fun () -> lock_world (); - try f ();unlock_world () with exc -> unlock_world (); raise exc in + try f ();unlock_world () with exc -> unlock_world (); raise exc + in + ignore (Thread.create thread_main ()) in let keep_focus f = fun () -> try