Changeset View
Changeset View
Standalone View
Standalone View
src/private/externalpartstorage_p.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 74 | private: | |||
---|---|---|---|---|---|
90 | 90 | | |||
91 | bool beginTransaction(); | 91 | bool beginTransaction(); | ||
92 | bool commitTransaction(); | 92 | bool commitTransaction(); | ||
93 | bool rollbackTransaction(); | 93 | bool rollbackTransaction(); | ||
94 | 94 | | |||
95 | bool replayTransaction(const QVector<Operation> &trx, bool commit); | 95 | bool replayTransaction(const QVector<Operation> &trx, bool commit); | ||
96 | void addToTransaction(const QVector<Operation> &ops); | 96 | void addToTransaction(const QVector<Operation> &ops); | ||
97 | 97 | | |||
98 | static ExternalPartStorage *sInstance; | | |||
99 | | ||||
100 | mutable QMutex mTransactionLock; | 98 | mutable QMutex mTransactionLock; | ||
101 | QHash<QThread *, QVector<Operation>> mTransactions; | 99 | QHash<QThread *, QVector<Operation>> mTransactions; | ||
102 | }; | 100 | }; | ||
103 | 101 | | |||
104 | } | 102 | } | ||
105 | 103 | | |||
106 | #endif // EXTERNALPARTSTORAGE_P_H | 104 | #endif // EXTERNALPARTSTORAGE_P_H |