mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-05 02:47:00 +08:00
Remove non portable sleep by std::this_thread::sleep_for
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
fcfdb7e56f
commit
c8cb925813
@ -31,6 +31,7 @@
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <thread> // for std::this_thread
|
||||
#include <vector>
|
||||
|
||||
#ifdef _WIN32
|
||||
@ -325,11 +326,7 @@ SVNetwork::SVNetwork(const char* hostname, int port) {
|
||||
Close();
|
||||
|
||||
std::cout << "ScrollView: Waiting for server...\n";
|
||||
#ifdef _WIN32
|
||||
Sleep(1000);
|
||||
#else
|
||||
sleep(1);
|
||||
#endif
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user