caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: William Chesters <williamc@dai.ed.ac.uk>
To: Don Syme <dsyme@microsoft.com>
Cc: caml-list@inria.fr
Subject: RE: threads & OCamlTK
Date: Wed, 17 Mar 1999 15:57:30 GMT	[thread overview]
Message-ID: <199903171557.PAA06380@toy.william.bogus> (raw)
In-Reply-To: <39ADCF833E74D111A2D700805F1951EF0F00BA7A@RED-MSG-06>

Don Syme writes:
 > William Chesters writes:
 > 
 > > > And, on a vaguely related topic, is it possible to use threads with
 > > > programs that also use OCamlTK? I know Tk is not threadsafe, but if
 > > > only one thread is calling Tk functions, then perhaps it's still OK?
 > 
 > >   No, `Tk.mainLoop' blocks the whole process.
 > 
 > Hmm... it seems not to, under Windows NT/bytecode.  Maybe this is because
 > Tk.mainLoop gets linked against a non-blocking library of code under
 > Windows.

Aha, it works for me too under Linux with native code/pthreads.  I
still have the test program from months ago which supposedly
demonstrated the opposite ... and it works too!  Oh well :-).
Probably wrong link options or something.




  reply	other threads:[~1999-03-17 21:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-17 15:02 Don Syme
1999-03-17 15:57 ` William Chesters [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-03-16 17:32 William Chesters
1999-03-15 15:05 Don Syme
1999-03-16 17:18 ` Francois Rouaix
1999-03-16 17:42   ` Jun P. Furuse
1999-03-22 18:39 ` Trevor Jim
1999-03-22 20:04   ` William Chesters
1999-03-23 16:08     ` Xavier Leroy
1999-03-23 15:07   ` Jerome Vouillon
1999-03-24 17:27     ` William Chesters

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199903171557.PAA06380@toy.william.bogus \
    --to=williamc@dai.ed.ac.uk \
    --cc=caml-list@inria.fr \
    --cc=dsyme@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).