lundi 9 mars 2015

Close the flow of the in stream itself

Need at some point to close the flow of the in stream itself. Example:



thread1 = std::thread([] () {
Long();
});

Long() {
....
while (true) {
....
if (..) {
thread1.join();
}
}
}


So I get the error.. Are there any ways to do this?


Aucun commentaire:

Enregistrer un commentaire