I am using ACE threads and need each thread to have its own int member.
Is that possible?
I am using ACE threads and need each thread to have its own int
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ACE calls this “Thread Specific Storage”. Check this out: ACE_TSS. That’s about all I know about it, sorry can’t be more help.
The Wikipedia page for thread-local storage says there is a pthreads way to do this too.