摘要: thread_local 变量调用其类型的拷贝构造函数,为每一个线程创建一个副本。 #include <stdio.h> #include <thread> #include <string.h> class STR{ public: char *s; STR(const STR& str){ ST 阅读全文
posted @ 2020-09-16 15:34 开学五年级了 阅读(598) 评论(0) 推荐(0) 编辑