From: Vincenzo Ciancia <vincenzo_yahoo_addressguard-gmane@yahoo.it>
To: caml-list@inria.fr
Subject: Re: Thread Local Storage
Date: Mon, 13 Feb 2006 11:05:59 +0100 [thread overview]
Message-ID: <dspllm$5nk$1@sea.gmane.org> (raw)
In-Reply-To: <ad8cfe7e0602122029rb2cb692pb200163d9cddc7d9@mail.gmail.com>
Jonathan Roewen wrote:
> I'm wondering if it'd be at all possible to somehow implement
> something akin to TLS under the ocaml bytecode vmthreads package.
>
> This is for having software-based processes, and globals whose
> instances are unique to a given process.
I don't know if there are better solutions but at least you can use an
hashtable or a balanced tree or whatever (protected by a mutex) indexed on
thread identifiers as reported by "Thread.id (Thread.self ())" or
something similar.
Bye
Vincenzo
--
Please note that I do not read the e-mail address used in the from field but
I read vincenzo_ml at yahoo dot it
Attenzione: non leggo l'indirizzo di posta usato nel campo from, ma leggo
vincenzo_ml at yahoo dot it
next prev parent reply other threads:[~2006-02-13 10:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-13 4:29 [Caml-list] " Jonathan Roewen
2006-02-13 10:05 ` Vincenzo Ciancia [this message]
2006-02-14 2:40 ` [Caml-list] " Jonathan Roewen
2006-02-14 4:06 ` skaller
2006-02-14 21:40 ` Florian Weimer
2006-02-14 22:21 ` skaller
2006-03-01 7:37 ` Florian Weimer
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='dspllm$5nk$1@sea.gmane.org' \
--to=vincenzo_yahoo_addressguard-gmane@yahoo.it \
--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