diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-09-26 11:27:11 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-09-27 07:29:18 +0000 |
commit | 81329781690d36def361b849536796684f6c07c5 (patch) | |
tree | 4631e3b38dc6e2a4dd64b4494db3178ffa6323e0 | |
parent | 22f12aa7b7508ab963efc8032a065239219a28f3 (diff) | |
download | flatpak-81329781690d36def361b849536796684f6c07c5.tar.gz |
installation: Document thread-safety
Based on my understanding of the matter, we claim
that FlatpakInstallation api is threadsafe.
This commit rewords things a bit, to more strongly
recommend FlatpakTransaction as the preferred API
for the tasks that it covers.
Closes: #2141
Approved by: alexlarsson
-rw-r--r-- | common/flatpak-installation.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/common/flatpak-installation.c b/common/flatpak-installation.c index d45f6980..31308912 100644 --- a/common/flatpak-installation.c +++ b/common/flatpak-installation.c @@ -42,6 +42,7 @@ * SECTION:flatpak-installation * @Title: FlatpakInstallation * @Short_description: Installation information + * @See_also: FlatpakTransaction * * FlatpakInstallation is the toplevel object that software installers * should use to operate on an flatpak applications. @@ -51,11 +52,16 @@ * system-wide (in $prefix/var/lib/flatpak) or per-user (in ~/.local/share/flatpak). * * FlatpakInstallation can list configured remotes as well as installed application - * and runtime references (in short: refs). It can also run, install, update and - * uninstall applications and runtimes, using #FlatpakTransaction. + * and runtime references (in short: refs), and it can add, remove and modify remotes. + * + * FlatpakInstallation can also run, install, update and uninstall applications and + * runtimes, but #FlatpakTransaction is a better, high-level API for these tasks. * * To get a list of all configured installations, use flatpak_get_system_installations(), * together with flatpak_installation_new_user(). + * + * The FlatpakInstallatio nAPI is threadsafe in the sense that it is safe to run two + * operations at the same time, in different threads (or processes). */ typedef struct _FlatpakInstallationPrivate FlatpakInstallationPrivate; |