AMMediaboard: Make timeout 0ms in NetDIMMAccept to improve performance.
This commit is contained in:
1 parent
4c61b9e009
commit
6a53c8f512
1 file changed
+2
-1
@@ -488,7 +488,8 @@ static GuestSocket NetDIMMAccept(GuestSocket guest_socket, sockaddr* addr, sockl
|
||||
const auto host_socket = GetHostSocket(guest_socket);
|
||||
WSAPOLLFD pfds[1]{{.fd = host_socket, .events = POLLIN}};
|
||||
|
||||
constexpr auto timeout = std::chrono::milliseconds{10};
|
||||
// FYI: Currently using a 0ms timeout to make accept calls always non-blocking.
|
||||
constexpr auto timeout = std::chrono::milliseconds{0};
|
||||
|
||||
const int result = PlatformPoll(pfds, timeout);
|
||||
|
||||
|
||||
Reference in new issue
Block a user