fix pthread_t init failed
Some checks failed
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Failing after 54s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Failing after 56s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m4s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m7s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 1m9s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m11s
linux-x64-gcc / linux-gcc (push) Successful in 1m42s

This commit is contained in:
tqcq 2023-12-28 14:35:16 +08:00
parent 34f14dc6bd
commit b251f4a60e

View File

@ -19,7 +19,7 @@ GetTid()
class Thread::Impl { class Thread::Impl {
public: public:
Impl(const ThreadFunc &func, const std::string &thread_name) Impl(const ThreadFunc &func, const std::string &thread_name)
: thread_(nullptr), : thread_(),
started_(false), started_(false),
joined_(false), joined_(false),
thread_name_(thread_name), thread_name_(thread_name),