From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p23N3HIO003655 for ; Fri, 4 Mar 2011 00:03:17 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkBAHqsb03RVdivkGdsb2JhbACYYI1/CBUBAQEBCQkMBxEEIaNgiiWCHYUoL4hbAQEDBYVcBIUUhxiGWoF9Og X-IronPort-AV: E=Sophos;i="4.62,260,1297033200"; d="scan'208";a="77048138" Received: from mail-qy0-f175.google.com ([209.85.216.175]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 04 Mar 2011 00:03:15 +0100 Received: by qyk35 with SMTP id 35so367611qyk.6 for ; Thu, 03 Mar 2011 15:03:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=L2priX6Jo9F8OeunO+el94k8vv4c5rZZTCMkMotjwPM=; b=jTrwAM79XdwmFFP3cVAfaL+uQyWdzB2OypJZG+SA3wFMYuUZnuEc8+53Nqaqwz3OBn KvJRC0pyy5f24AdgxWHwWheegqtE2KyMotpb3zQWRlu56HdwNB8+9vY2oShyfq22++QU 3N0kGCLYGWa/+Y+HbVPEs+fqyy8zfpM49Gpd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tTMM6/5TLDxTS7tbXNhKdHRAtPQKDF3GtllCbNr0vICSrPcwLgwTYKlYMf1ujkCPlY eASEyO9Z8ANSBbmkEXmyYZmC+RBsCbImRgecAWE+3RJflD/ym0CetSDrhHWz6Mz48UUc WLN4DzXBVW1K2iKQ7ynOAXlPqDV3UlGU8Ub+I= MIME-Version: 1.0 Received: by 10.224.33.131 with SMTP id h3mr1639821qad.311.1299193394206; Thu, 03 Mar 2011 15:03:14 -0800 (PST) Received: by 10.229.96.136 with HTTP; Thu, 3 Mar 2011 15:03:14 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Mar 2011 02:03:14 +0300 Message-ID: From: Dmitry Bely To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p23N3HIO003655 Subject: Re: [Caml-list] Using C threads On Fri, Mar 4, 2011 at 1:16 AM, Niki Yoshiuchi wrote: > I figured it out so I'm posting it here for reference. > caml_c_thread_register() attempts to get the master lock, which > involves dereferencing a pointer.  That pointer is initialized by the > Thread module.  However if the OCaml code doesn't use the Thread > module Have you specified -thread compiler option? Is it mandatory when using system threads. - Dmitry Bely