<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/685b685063d5aac6934aa1e7da4ac9f1"
  from="Jonathan Roewen &lt;jonathan.roewen@g...&gt;"
  author="Jonathan Roewen"
  date="2006-02-14T02:40:27"
  subject="Re: [Caml-list] Re: Thread Local Storage"
  prev="2006/02/e2ac6157fdcc6fcaefdce3f8dd56911d"
  next="2006/02/f313296d7c99c64a62b09ce3a90c78da"
  prev-in-thread="2006/02/be44d73f15618cb62a50293740a0e97e"
  next-in-thread="2006/02/f313296d7c99c64a62b09ce3a90c78da"
  prev-thread="2006/02/a74b4211ff6f1c1241c93b24e6b20882"
  next-thread="2006/02/90d9e4642462c7664427ec1e4375a828"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Thread Local Storage">
<msg 
  url="2006/02/37d39060650086440a25f738a8d7ce2b"
  from="Jonathan Roewen &lt;jonathan.roewen@g...&gt;"
  author="Jonathan Roewen"
  date="2006-02-13T04:29:39"
  subject="[Caml-list] Thread Local Storage">
<msg 
  url="2006/02/be44d73f15618cb62a50293740a0e97e"
  from="Vincenzo Ciancia &lt;vincenzo_yahoo_addressguard-gmane@y...&gt;"
  author="Vincenzo Ciancia"
  date="2006-02-13T10:06:10"
  subject="Re: Thread Local Storage">
<msg 
  url="2006/02/685b685063d5aac6934aa1e7da4ac9f1"
  from="Jonathan Roewen &lt;jonathan.roewen@g...&gt;"
  author="Jonathan Roewen"
  date="2006-02-14T02:40:27"
  subject="Re: [Caml-list] Re: Thread Local Storage">
<msg 
  url="2006/02/f313296d7c99c64a62b09ce3a90c78da"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2006-02-14T04:06:54"
  subject="Re: [Caml-list] Re: Thread Local Storage">
<msg 
  url="2006/02/91bf2295cdd25f0d08079131d5dedc0e"
  from="Florian Weimer &lt;fw@d...&gt;"
  author="Florian Weimer"
  date="2006-02-14T21:40:12"
  subject="Re: [Caml-list] Re: Thread Local Storage">
<msg 
  url="2006/02/31be4778d2ba3feaa6fe155b6b506b0e"
  from="skaller &lt;skaller@u...&gt;"
  author="skaller"
  date="2006-02-14T22:21:48"
  subject="Re: [Caml-list] Re: Thread Local Storage">
<msg 
  url="2006/03/1a44ff95789d94a924a35f2f197429a5"
  from="Florian Weimer &lt;fw@d...&gt;"
  author="Florian Weimer"
  date="2006-03-01T11:23:28"
  subject="Re: [Caml-list] Re: Thread Local Storage">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
&gt; I don't know if there are better solutions but at least you can use an
&gt; hashtable or a balanced tree or whatever (protected by a mutex) indexed on
&gt; thread identifiers as reported by  "Thread.id (Thread.self ())" or
&gt; something similar.

Yes, but that means that you need functions to lookup the values,
rather than having the value have process-dependent values globally.
Think like Sys.argv (etc) -- this'd require changes to the interfaces
(not such a big deal, since I have control over all interfaces).

But to go even further, having distinct descriptors for
stdin/stdout/stderr, then you could see where this would become
unstuck. Whilst I have code that can change the value transparently
for stdin/stdout/stderr, this'd make for a bigger process switch if I
had to do for all TLS values.

Perhaps what I need would require a change to the compiler and runtime
=/ What I'd also want to avoid, but I guess I'll have to face the
music....

Jonathan

</contents>

</message>

