From: Trevor Jim <trevor@research.att.com>
To: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] effect of -thread with ocamlc/ocamlopt -c
Date: Wed, 13 Sep 2006 10:59:12 -0400 [thread overview]
Message-ID: <45081CC0.8010004@research.att.com> (raw)
In-Reply-To: <ad8cfe7e0609121434o1a6f152r512fb1ca9355a173@mail.gmail.com>
Well, I'm still confused. Consider that a bunch of the standard
libraries use Pervasives, but I can see that the standard library
is not compiled with -thread. So clearly we are meant to use the
standard library compiled without -thread, with threads.cm[x]a.
So, I still don't understand when I can combine code compiled
without -thread with code compiled with -thread.
-Trevor
Jonathan Roewen wrote:
> Oh wait, I'm sorry. Yes, there is good reason: it uses a different
> version of Pervasives internals.
>
> Depending on when linking is done for each part, you may end up with
> conflicting implementations of Pervasives in your final program: so
> [IO] operations that can block will block whole program instead of
> running thread blocking, and another thread running instead.
>
> So maybe if it uses no IO, and no threading functions, it might be
> okay -- there are no guarantees when you do these sorts of things (:
>
> Jonathan
next prev parent reply other threads:[~2006-09-13 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-12 17:07 Trevor Jim
2006-09-12 21:29 ` [Caml-list] " Jonathan Roewen
2006-09-12 21:34 ` Jonathan Roewen
2006-09-13 14:59 ` Trevor Jim [this message]
2006-09-13 16:34 ` Jacques Garrigue
2006-09-13 16:57 ` Trevor Jim
2006-09-13 17:40 ` Xavier Leroy
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=45081CC0.8010004@research.att.com \
--to=trevor@research.att.com \
--cc=caml-list@yquem.inria.fr \
--cc=jonathan.roewen@gmail.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