MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / captureProjectEpoch

Function captureProjectEpoch

app/src/API/Handlers/ProjectHandler.cpp:234–237  ·  view source on GitHub ↗

* @brief Snapshot of the project epoch before a mutating handler runs. */

Source from the content-addressed store, hash-verified

232 * @brief Snapshot of the project epoch before a mutating handler runs.
233 */
234[[nodiscard]] static qint64 captureProjectEpoch()
235{
236 return DataModel::ProjectModel::instance().mutationEpoch();
237}
238
239/**
240 * @brief Append a stale_project warning when the caller's expectedProjectEpoch is stale.

Callers 5

groupDeleteMethod · 0.85
datasetDeleteMethod · 0.85
datasetMoveMethod · 0.85
groupMoveMethod · 0.85
datasetUpdateMethod · 0.85

Calls 1

mutationEpochMethod · 0.80

Tested by

no test coverage detected