Home

* 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?

previous
next

Re: 2 python questions!
Re: Is it possible to catch an exception raised by a member variable?
Re: Assignments and Variable Substitution
Re: Sets in Python
in design time activeX properties
Rodzic Po Ludzku
Kidprotect
Fundacja Avalon
Nasze Dzieci
Krwinka