Commit fcb9b15
committed
allow iter() on Queue<_, QueueStateSync>
Create a guard type for a locked Queue instead of just reusing the guard of the
underlying QueueState. The guard can have a single-argument iter() method,
just like Queue<_, QueueState> has.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 6f7a9dc commit fcb9b15
File tree
2 files changed
+35
-4
lines changed- crates
- devices/virtio-blk/src
- virtio-queue/src
2 files changed
+35
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
337 | 336 | | |
338 | 337 | | |
339 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1016 | 1045 | | |
1017 | 1046 | | |
1018 | 1047 | | |
| |||
1036 | 1065 | | |
1037 | 1066 | | |
1038 | 1067 | | |
1039 | | - | |
1040 | | - | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1041 | 1073 | | |
1042 | 1074 | | |
1043 | 1075 | | |
| |||
0 commit comments