From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 468A881792 for ; Sun, 23 Jun 2013 06:57:18 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of bills@emu-bark.com) identity=pra; client-ip=173.201.193.239; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="bills@emu-bark.com"; x-sender="bills@emu-bark.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of bills@emu-bark.com) identity=mailfrom; client-ip=173.201.193.239; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="bills@emu-bark.com"; x-sender="bills@emu-bark.com"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@p3plsmtpa09-10.prod.phx3.secureserver.net) identity=helo; client-ip=173.201.193.239; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="bills@emu-bark.com"; x-sender="postmaster@p3plsmtpa09-10.prod.phx3.secureserver.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvoBAIx+xlGtycHvemdsb2JhbABbxDYWDgEBCQ0JCRErgmJAPRYYAwIBAgFLDQYCAQGICpkzn1KLeoc/A51kg32KUg X-IPAS-Result: AvoBAIx+xlGtycHvemdsb2JhbABbxDYWDgEBCQ0JCRErgmJAPRYYAwIBAgFLDQYCAQGICpkzn1KLeoc/A51kg32KUg X-IronPort-AV: E=Sophos;i="4.87,922,1363129200"; d="scan'208";a="22962304" Received: from p3plsmtpa09-10.prod.phx3.secureserver.net ([173.201.193.239]) by mail2-smtp-roc.national.inria.fr with ESMTP; 23 Jun 2013 06:57:17 +0200 Received: from [192.168.0.2] ([173.26.186.224]) by p3plsmtpa09-10.prod.phx3.secureserver.net with id rgxC1l00g4qv3b901gxDmm; Sat, 22 Jun 2013 21:57:14 -0700 Message-ID: <51C68028.6030206@emu-bark.com> Date: Sun, 23 Jun 2013 00:57:12 -0400 From: William Smith User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Caml-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Caml-list] caml_acquire_runtime_system() 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