Test SQ poll threads. Unstable and in fact slower :(

This commit is contained in:
Vitaliy Filippov
2020-03-03 17:23:39 +03:00
parent c9f3654905
commit eabfe4faac
18 changed files with 215 additions and 59 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ struct osd_client_t
{
sockaddr_in peer_addr;
int peer_port;
int peer_fd;
int peer_fd, peer_fd_index;
int peer_state;
std::function<void(osd_num_t, int)> connect_callback;
osd_num_t osd_num = 0;
@@ -196,7 +196,7 @@ class osd_t
timerfd_interval *tick_tfd;
int wait_state = 0;
int epoll_fd = 0;
int epoll_fd = 0, epoll_fd_index = -1;
int listen_fd = 0;
ring_consumer_t consumer;