A prepared consumer mutation with a non-throwing visibility boundary. 更多...
#include <ArtifactPublication.h>
Public 成员函数 | |
| virtual | ~PreparedPublication ()=default |
| Releases PreparedPublication resources. | |
| virtual void | commit () noexcept=0 |
| Make the prepared mutation observable; the operation cannot fail. | |
| virtual void | rollback () noexcept=0 |
| Discard the prepared mutation; idempotent and non-throwing. | |
详细描述
A prepared consumer mutation with a non-throwing visibility boundary.
commit and rollback are called on the preparing thread. Implementations preallocate/copy everything in prepare; an unexpected allocation or broken invariant during commit is a process-fatal contract violation and must not be reported as a recoverable partial success.
在文件 ArtifactPublication.h 第 102 行定义.
构造及析构函数说明
◆ ~PreparedPublication()
|
virtualdefault |
Releases PreparedPublication resources.
成员函数说明
◆ commit()
|
pure virtualnoexcept |
Make the prepared mutation observable; the operation cannot fail.
在 eve::graphics::GraphicsArtifactStage, eve::map::MapArtifactStage, eve::physics::PhysicsArtifactStage, eve::procgen::ArtifactStoreStage , 以及 eve::scene::SceneArtifactStage 内被实现.
◆ rollback()
|
pure virtualnoexcept |
Discard the prepared mutation; idempotent and non-throwing.
在 eve::graphics::GraphicsArtifactStage, eve::map::MapArtifactStage, eve::physics::PhysicsArtifactStage, eve::procgen::ArtifactStoreStage , 以及 eve::scene::SceneArtifactStage 内被实现.
该类的文档由以下文件生成:
- src/engine/common/ArtifactPublication.h