Synchronize with possible concurrent writers to the NvComputer object

This commit is contained in:
Cameron Gutman
2023-10-01 17:46:27 -05:00
parent 0976bc39b3
commit 49e0679864
3 changed files with 8 additions and 2 deletions

View File

@@ -34,8 +34,10 @@ private:
public:
NvComputer() = default;
NvComputer(const NvComputer& other) = default;
// Caller is responsible for synchronizing read access to the other host
NvComputer(const NvComputer&) = default;
// Caller is responsible for synchronizing read access to the other host
NvComputer& operator=(const NvComputer &) = default;
explicit NvComputer(NvHTTP& http, QString serverInfo);
@@ -67,6 +69,7 @@ public:
void
serialize(QSettings& settings, bool serializeApps) const;
// Caller is responsible for synchronizing read access to both hosts
bool
isEqualSerialized(const NvComputer& that) const;