|
Fray Engine
|
Ensures a queued close clears its closing marker even on early exit. More...
Public Member Functions | |
| ~CloseTaskGuard () | |
| Finishes an active close according to whether the project remains open. | |
| void | finish (F_err result) |
| Records the close result once and disarms the guard. | |
Public Attributes | |
| FrayManager & | manager |
| Non-owning manager that tracks the close. | |
| ProjectManager & | project |
| Non-owning project being closed. | |
| const std::shared_ptr< threads::TaskQueue > & | queue |
| Non-owning reference to the shared project queue handle. | |
| bool | active |
| Whether close completion still needs to be recorded. | |
| bool | removeOnSuccess = false |
| Whether successful completion removes the registered project. | |
Ensures a queued close clears its closing marker even on early exit.
Definition at line 2950 of file fray_manager.hpp.
|
inline |
Finishes an active close according to whether the project remains open.
Definition at line 2974 of file fray_manager.hpp.
|
inline |
Records the close result once and disarms the guard.
| result | Close result; NONE indicates success. |
Definition at line 2985 of file fray_manager.hpp.
| bool fray::FrayManager::CloseTaskGuard::active |
Whether close completion still needs to be recorded.
Definition at line 2967 of file fray_manager.hpp.
| FrayManager& fray::FrayManager::CloseTaskGuard::manager |
Non-owning manager that tracks the close.
Definition at line 2955 of file fray_manager.hpp.
| ProjectManager& fray::FrayManager::CloseTaskGuard::project |
Non-owning project being closed.
Definition at line 2959 of file fray_manager.hpp.
| const std::shared_ptr<threads::TaskQueue>& fray::FrayManager::CloseTaskGuard::queue |
Non-owning reference to the shared project queue handle.
Definition at line 2963 of file fray_manager.hpp.
| bool fray::FrayManager::CloseTaskGuard::removeOnSuccess = false |
Whether successful completion removes the registered project.
Definition at line 2969 of file fray_manager.hpp.