We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386705e commit 5519066Copy full SHA for 5519066
include/slick/socket/tcp_server_unix.h
@@ -358,6 +358,11 @@ void TCPServerBase<DerivedT>::server_loop()
358
{
359
if (errno == EINTR)
360
361
+ if (config_.cpu_affinity < 0)
362
+ {
363
+ // CPU isn't spinning
364
+ std::this_thread::yield();
365
+ }
366
continue;
367
}
368
LOG_ERROR("epoll_wait failed: {}", std::strerror(errno));
include/slick/socket/tcp_server_win32.h
@@ -278,6 +278,11 @@ void TCPServerBase<DrivedT>::server_loop()
278
279
280
281
282
283
284
285
286
287
288
LOG_ERROR("epoll_wait failed: {}", WSAGetLastError());
0 commit comments