Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

How to attach an object to a thread.

Moderators: larsivi kris

Posted: 04/11/11 12:59:02


Actually, I'm using a ThreadPool? and I want to attach one object for each thread. The objectiv is to reuse the objects instead of create new one for each thread add in the pool. What is the best solution to do this: ThreadLocal?, ThreadGroup?? I'm not very experimented on that.

There are no responses to display.