Commit 060a04c
committed
Action registry: run delayed actions in FIFO order instead of LIFO
Say we have two delayed actions we want to register in the following order:
close a file handle, and remove the corresponding file. When the action registry
is committed, then previously we would run the actions in LIFO order. This leads
to an error because we can't remove a file while we also have an open handle to
that file. Now that we run the actions in FIFO order, it works correctly.1 parent a40e328 commit 060a04c
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
250 | | - | |
251 | | - | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
0 commit comments