I am trying to debug a peers code and have encountered a constructor for a thread. What the heck is this doing? Is it safe? It's scary elegant code...
More Specific syntax is:
th = thread([=]()
{
while(var=true){
//do stuff
}
});
I am trying to debug a peers code and have encountered a constructor for a thread. What the heck is this doing? Is it safe? It's scary elegant code...
More Specific syntax is:
th = thread([=]()
{
while(var=true){
//do stuff
}
});