* Glyn Davies:
> Cristiano wrote:
>> I have many module cpp with many functions.
>> I need to call these functions from 2 threads.
>> I'd like to do something to tell the compiler that each thread has its
>> own
>> functions. The easiest way is to write the same functions twice, but
>> there
>> are many functions.
>> Is there an "automatic" way to do that?
>>
>> Thanks
>> Cristiano
>>
>>
>>
>
> Not sure if this is what your after, but look up "thread local storage"
>
> It will be specific to your platform, so you are probably better asking
> this question in a windows/linux/other* development newsgroup
Boost threads offer portable thread local storage.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?