caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: skaller@users.sourceforge.net
Cc: shawjef3@msu.edu, caml-list@inria.fr
Subject: Re: [Caml-list] crash under macos x but not win32
Date: Tue, 10 Apr 2007 11:41:42 +0900 (JST)	[thread overview]
Message-ID: <20070410.114142.108305770.garrigue@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <1176170937.5747.24.camel@rosella.wigram>

From: skaller <skaller@users.sourceforge.net>
> On Tue, 2007-04-10 at 10:07 +0900, Jacques Garrigue wrote:
> > From: "Jeffrey Loren Shaw" <shawjef3@msu.edu>
> 
> >  Rather, it appears not
> > to be reentrant (or rather not callable from several threads.) By the
> > way I am surprised you have no problem under Win32, which often has
> > reentrance problems too.
> 
> Tcl is re-entant since version 8. Tk is not and never will be.

Actually this is not the problem here, as ocaml does not need full
reentrance (ability to call the library after preemption), but just a
weaker form (ability to call the library from any thread, after
control was given back to the ocaml process). This is because only one
ocaml thread runs at any time, and only when the control is on the
caml side. So I believe the problem is at a lower level, either in the
system's graphics libraries (I'm no OSX specialist), or in the
specifics of the Tk/Aqua implementation. For instance, on windows, GDI
functions must always be called from the same thread or you get an
error.

Jacques Garrigue


  reply	other threads:[~2007-04-10  2:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10  0:19 Jeffrey Loren Shaw
2007-04-10  1:07 ` [Caml-list] " Jacques Garrigue
2007-04-10  2:08   ` skaller
2007-04-10  2:41     ` Jacques Garrigue [this message]
2007-04-10  3:56   ` Jeffrey Loren Shaw
2007-04-10  4:15     ` Jacques Garrigue
2007-04-10  5:52       ` skaller

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=20070410.114142.108305770.garrigue@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=shawjef3@msu.edu \
    --cc=skaller@users.sourceforge.net \
    /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).