mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
lf_queue: add iterator support
Allow range-for loop over an object returned by `pop_all()`
This commit is contained in:
parent
cfdf50dcff
commit
435f60d503
3 changed files with 154 additions and 41 deletions
|
|
@ -246,9 +246,9 @@ error_code cellSysutilCheckCallback(ppu_thread& ppu)
|
|||
|
||||
const auto cbm = fxm::get_always<sysutil_cb_manager>();
|
||||
|
||||
for (auto list = cbm->registered.pop_all(); list; list = list->pop_all())
|
||||
for (auto&& func : cbm->registered.pop_all())
|
||||
{
|
||||
if (s32 res = list->get()(ppu))
|
||||
if (s32 res = func(ppu))
|
||||
{
|
||||
// Currently impossible
|
||||
return not_an_error(res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue