mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-11 15:33:04 +00:00
c0a0c0ae71
Limit the use of Reg_list::for_each that caches a next pointer of its items to allow destruction of items in its lambda body. Instead provide an Reg_list::apply function in addition, which takes a condition lambda to find the matching item, and a lambda processed on it. In most use-cases where for_each was used, only one item was searched for. Here we can use apply now., without the need for a cached pointer, nor too many iterations. Fixes genodelabs/genode#5349 |
||
---|---|---|
.. | ||
app | ||
driver | ||
init | ||
lib | ||
monitor | ||
server | ||
test | ||
trace/policy |