lundi 27 avril 2015

Threading with class

I have some questions to std::thread in C++-11:

following scenario:

SomeClass -> create and start the threads with std::thread and contains std::mutex ThreadClass -> thread function (e.g. Start()), need access to std::mutex to lock (think it need to be derived from SomeClass)

Can you please give me an example that fit!? (I know there are some tutorials around but maybe you can help me)

Aucun commentaire:

Enregistrer un commentaire