thread 是模板,参数的形式是所谓的 forwarding reference(或 universal reference),所以传参给 thread 的构造函数时,如果参数是左值,则参数被 copy 到内部,如果传的参数是右值,则 move,无论如何 thread 内部都(暂时)保留了参数的一个 copy,然后内部传给用户的函数时,直接 move. std::thread(调用的线程函数,) 最...