Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Aug 11, 2023
1 parent 3613ffd commit 7d38150
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 271 deletions.
8 changes: 4 additions & 4 deletions src/extension/IOController_Windows.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ namespace extension {
const std::lock_guard<std::mutex> lock(tasks_mutex);

// Find the reaction that finished processing
auto task = std::find_if(tasks.begin(), tasks.end(), [&event](const Task& t) {
return t.reaction->id == event.id;
auto task = std::find_if(tasks.begin(), tasks.end(), [&event](const std::pair<WSAEVENT, Task>& t) {
return t.second.reaction->id == event.id;
});

// If we found it then clear the waiting events
Expand All @@ -247,8 +247,8 @@ namespace extension {
const std::lock_guard<std::mutex> lock(tasks_mutex);

// Find our reaction
auto it = std::find_if(tasks.begin(), tasks.end(), [&unbind](const Task& t) {
return t.reaction->id == unbind.id;
auto it = std::find_if(tasks.begin(), tasks.end(), [&unbind](const std::pair<WSAEVENT, Task>& t) {
return t.second.reaction->id == unbind.id;
});

if (it != tasks.end()) {
Expand Down
267 changes: 0 additions & 267 deletions src/extension/IOController_Windows2.hpp

This file was deleted.

0 comments on commit 7d38150

Please sign in to comment.