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.
1 parent 15e839b commit abc5270Copy full SHA for abc5270
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