Treat input thread as the non-blocking it is
This commit is contained in:
@@ -152,7 +152,8 @@ int main(int argc, char *argv[]) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(8));
|
||||
}
|
||||
|
||||
input_thread.detach();
|
||||
if (input_thread.joinable())
|
||||
input_thread.join();
|
||||
|
||||
if (work_thread.joinable())
|
||||
work_thread.join();
|
||||
|
||||
Reference in New Issue
Block a user