[DEV] continue removing STL
This commit is contained in:
@@ -53,7 +53,7 @@ int main(int _argc, const char *_argv[]) {
|
||||
connection.setHeader(req);
|
||||
|
||||
while (connection.isAlive() == true) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
ethread::sleepMilliSeconds((100));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@@ -66,7 +66,7 @@ int main(int _argc, const char *_argv[]) {
|
||||
int32_t timeout = 20;
|
||||
while (connection.isAlive() == true
|
||||
&& timeout > 0) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
ethread::sleepMilliSeconds((100));
|
||||
timeout--;
|
||||
}
|
||||
return 0;
|
||||
|
@@ -10,7 +10,6 @@
|
||||
#include <enet/TcpClient.hpp>
|
||||
#include <enet/Http.hpp>
|
||||
#include <etk/etk.hpp>
|
||||
#include <iostream>
|
||||
#include <etk/stdTools.hpp>
|
||||
|
||||
int main(int _argc, const char *_argv[]) {
|
||||
@@ -45,7 +44,7 @@ int main(int _argc, const char *_argv[]) {
|
||||
int32_t len = connection.read(data, 1024);
|
||||
TEST_INFO("read len=" << len << " data='" << data << "'");
|
||||
//if (data[len-1] == '2') {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(delay));
|
||||
ethread::sleepMilliSeconds((delay));
|
||||
delay--;
|
||||
if (delay == 0) {
|
||||
delay = 500;
|
||||
|
@@ -82,7 +82,7 @@ int main(int _argc, const char *_argv[]) {
|
||||
connection.start();
|
||||
|
||||
while (connection.isAlive() == true) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
ethread::sleepMilliSeconds((100));
|
||||
}
|
||||
|
||||
|
||||
|
@@ -85,7 +85,7 @@ int main(int _argc, const char *_argv[]) {
|
||||
connection.start();
|
||||
|
||||
while (connection.isAlive() == true) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
ethread::sleepMilliSeconds((100));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user