repo: Add concurrency=send

Ultimately a repo is just a file descriptor wrapper with some
cached data, etc.  We can send it between threads, much like how
`gio::File` is `Send`.

Motivated by trying to write to a repo from a separate thread
in https://github.com/cgwalters/ostree-container
This commit is contained in:
Colin Walters committed 2022-05-06 12:53:56 -04:00
1 parent 0718f433a2
commit b5496f70f6
4 files changed
+7 -4

No files matched your search

+1
View File
@@ -139,6 +139,7 @@ status = "generate"
[[object]]
name = "OSTree.Repo"
status = "generate"
concurrency = "send"
[[object.function]]
# [MANUAL] we special-case the checksum value
pattern = "^(write_content|write_content_async|write_metadata|write_metadata_async)$"