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.
2 parents 285c320 + abc5270 commit 2902876Copy full SHA for 2902876
src/mips/psyqo/src/kernel.cpp
@@ -409,7 +409,8 @@ void psyqo::Kernel::Internal::pumpCallbacks() {
409
if (s_flag == 0) return;
410
fastEnterCriticalSection();
411
s_flag = 0;
412
- while (!s_callbacks.empty()) {
+ auto count = s_callbacks.size();
413
+ for (size_t i = 0; i < count; i++) {
414
auto& l = s_callbacks.front();
415
fastLeaveCriticalSection();
416
l();
0 commit comments