Am Donnerstag, den 25.09.2014, 14:19 +0300 schrieb Török Edwin: > On 09/25/2014 01:26 PM, Kakadu wrote: > > Hello, > > > > I have demo application [1] which creates OCaml threads and executes > > C++ event loop from different libraries. When I compile it to native > > code everything is fine but when I create custom bytecode executable > > OCaml threads doesn't work. > > > > I have tested it with Qt4, Qt5 and GTK2 and behaviour is same. Can you > > explain me what is happening there, please > > See https://sympa.inria.fr/sympa/arc/caml-list/2004-07/msg00305.html > If you use '-vmthread' the runtime doesn't create new system threads for you. > > Is there a particular reason why you need to use 'ocamlc -vmthread' instead of 'ocamlc -thread'? Maybe Kakadu did not know this: you can also use -thread for bytecode. In ancient versions of OCaml this was not possible, but this mode has been enabled for a long time now. Gerd -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------