Commit 560d344
committed
imageproxy: make ImageProxy: Send + Sync
The internal detail of how we handle the exit of the child process leads
to the entire ImageProxy struct not being Send, which means that it
can't be used in cross-thread Futures with tokio. Fortunately it's a
very simple fix.
Add some trivial static testing to make sure this doesn't regress. Add
it for OpenedImage as well: it's currently trivially Send+Sync on
account of being a wrapper around an integer, but this might change in
the future.
This change has been cross-checked against both bootc (ostree-ext) and
composefs-rs and doesn't cause any issues.
Signed-off-by: Allison Karlitskaya <[email protected]>1 parent 8327958 commit 560d344
1 file changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
718 | 721 | | |
719 | 722 | | |
720 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
721 | 740 | | |
0 commit comments