lundi 5 octobre 2015

C++ Multi-threading giving a templated std::bind to another thread

I try to give a std::bind to another existing thread currently waiting in a condition_variable. I really want to keep this other thread alive and not creating another one. But I don't know how to give this std::bind to the other thread, due to the fact that everything is decided at compile-time.

I know that boost thread pool manage that, and I really wonder how and I'd like doing it without boost.

Has someone any idea?

Thank you for your time,

Aucun commentaire:

Enregistrer un commentaire