Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
emper-io-eval
Commits
8497fe27
Commit
8497fe27
authored
Nov 25, 2021
by
Florian Fischer
Browse files
clients/io_uring: fix includes
parent
3a74b5ee
Pipeline
#72820
passed with stage
in 1 minute and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
clients/io_uring/client.cpp
View file @
8497fe27
...
...
@@ -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
]
{
s
leep
(
time
);
s
td
::
this_thread
::
sleep_for
(
seconds
(
time
)
)
;
this
->
quit
=
true
;
});
}
...
...
clients/io_uring/iwyu-mappings.imp
0 → 100644
View file @
8497fe27
[
{ include: ["<liburing/io_uring.h>", "private", "<liburing.h>", "public"] },
{ include: ["<bits/this_thread_sleep.h>", "private", "<thread>", "public" ] },
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment