Open zhihuba opened 2 years ago
Hi, thanks for your report. Can you provide the checkDebug.cpp
you compiled?
#include <iostream>
#include "mingw.thread.h"
void myThread() {
while (1) {
cout << "check Dbug!" << endl;
Sleep(1000);
}
}
int main()
{
thread thr(myThread);
std::cout << "Hello World!\n";
while (true)
{
cout << "good!" << thr.get_id() << endl;
Sleep(1000 * 2);
}
thr.join();
}
this is good
this is error
log