[DEV] continue removing STL

This commit is contained in:
2017-09-14 00:59:21 +02:00
parent 73c73ef1f5
commit cb097b3ce5
14 changed files with 49 additions and 52 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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;

View File

@@ -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));
}

View File

@@ -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;
}