Commit 8497fe27 authored by Florian Fischer's avatar Florian Fischer
Browse files

clients/io_uring: fix includes

parent 3a74b5ee
Pipeline #72820 passed with stage
in 1 minute and 7 seconds
......@@ -4,16 +4,19 @@
#include <netdb.h>
#include <pthread.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <algorithm>
#include <atomic>
#include <cassert>
#include <cerrno>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#define DIE_MSG(...) \
do { \
......@@ -26,6 +29,8 @@
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
using std::chrono::seconds;
static const int DECIMAL = 10;
static auto getFirstAddrInfo(const std::string& host, const std::string& port) -> struct addrinfo* {
......@@ -146,7 +151,7 @@ Client::Client(const std::string& host, const std::string& port, unsigned connec
if (time) {
std::jthread([this, time] {
sleep(time);
std::this_thread::sleep_for(seconds(time));
this->quit = true;
});
}
......
[
{ include: ["<liburing/io_uring.h>", "private", "<liburing.h>", "public"] },
{ include: ["<bits/this_thread_sleep.h>", "private", "<thread>", "public" ] },
]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment