semaphore: Fix returned iterator from AddWaiter (#1614)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

This commit is contained in:
squidbus 2024-11-28 15:42:39 -08:00 committed by GitHub
parent bd3371bdfb
commit 57a3c0132d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,8 +165,7 @@ public:
while (it != wait_list.end() && (*it)->priority > waiter->priority) {
++it;
}
wait_list.insert(it, waiter);
return it;
return wait_list.insert(it, waiter);
}
WaitList wait_list;