caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: William Smith <bills@emu-bark.com>
To: Caml-list <caml-list@inria.fr>
Subject: [Caml-list] caml_acquire_runtime_system()
Date: Sun, 23 Jun 2013 00:57:12 -0400	[thread overview]
Message-ID: <51C68028.6030206@emu-bark.com> (raw)

Hi,

What happens when you call caml_acquire_runtime_system( ) more than one 
time from the same thread.

I looked at the code and it appears that you must make you call 
caml_release_runtime_system() the same number of times.

However both functions modify a lot of internal global variables so I'm 
not certain.  What's the guaranteed behavior?  I didn't see where 
chapter 19 (Interfacing C with OCaml) addresses the issue.

Thanks,

Bill Smith
bills@emu-bark.com

                 reply	other threads:[~2013-06-23  4:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=51C68028.6030206@emu-bark.com \
    --to=bills@emu-bark.com \
    --cc=caml-list@inria.fr \
    /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).