Skip to content

Commit

Permalink
Remove notes
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Nov 9, 2024
1 parent 040fcff commit 980ffd5
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/windows-emulator/devices/afd_endpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,6 @@ namespace
pfd.events |= POLLWRNORM;
}

/*if ((pfd.events & POLLRDNORM) != 0)
handle.PollEvents |= (AFD_POLL_ACCEPT | AFD_POLL_RECEIVE);
if ((pfd.events & POLLRDBAND) != 0)
handle.PollEvents |= AFD_POLL_RECEIVE_EXPEDITED;
if ((pfd.events & POLLWRNORM) != 0)
handle.PollEvents |= (AFD_POLL_CONNECT_FAIL | AFD_POLL_SEND);
handle.PollEvents |= (AFD_POLL_DISCONNECT | AFD_POLL_ABORT);*/

// -----------------------------

pfd.fd = endpoints[i];
pfd.events = POLLIN;
pfd.revents = pfd.events;
Expand Down Expand Up @@ -156,19 +145,6 @@ namespace
events |= AFD_POLL_LOCAL_CLOSE;
}

/*if ((handle.PollEvents & (AFD_POLL_ACCEPT | AFD_POLL_RECEIVE)) != 0 && (pfd.events & POLLRDNORM) != 0)
pfd.revents |= POLLRDNORM;
if ((handle.PollEvents & AFD_POLL_RECEIVE_EXPEDITED) != 0 && (pfd.events & POLLRDBAND) != 0)
pfd.revents |= POLLRDBAND;
if ((handle.PollEvents & (AFD_POLL_CONNECT_FAIL | AFD_POLL_SEND)) != 0 && (pfd.events & POLLWRNORM) != 0)
pfd.revents |= POLLWRNORM;
if ((handle.PollEvents & AFD_POLL_DISCONNECT) != 0)
pfd.revents |= POLLHUP;
if ((handle.PollEvents & (AFD_POLL_CONNECT_FAIL | AFD_POLL_ABORT)) != 0)
pfd.revents |= POLLHUP | POLLERR;
if ((handle.PollEvents & AFD_POLL_LOCAL_CLOSE) != 0)
pfd.revents |= POLLNVAL;*/

auto entry = handle_info_obj.read(i);
entry.PollEvents = events;
entry.Status = STATUS_SUCCESS;
Expand Down

0 comments on commit 980ffd5

Please sign in to comment.