Fray Engine
Loading...
Searching...
No Matches
fray::FrayManager::CloseTaskGuard Struct Reference

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.

Detailed Description

Ensures a queued close clears its closing marker even on early exit.

Definition at line 2950 of file fray_manager.hpp.

Constructor & Destructor Documentation

◆ ~CloseTaskGuard()

fray::FrayManager::CloseTaskGuard::~CloseTaskGuard ( )
inline

Finishes an active close according to whether the project remains open.

Definition at line 2974 of file fray_manager.hpp.

Member Function Documentation

◆ finish()

void fray::FrayManager::CloseTaskGuard::finish ( F_err result)
inline

Records the close result once and disarms the guard.

Parameters
resultClose result; NONE indicates success.

Definition at line 2985 of file fray_manager.hpp.

Member Data Documentation

◆ active

bool fray::FrayManager::CloseTaskGuard::active

Whether close completion still needs to be recorded.

Definition at line 2967 of file fray_manager.hpp.

◆ manager

FrayManager& fray::FrayManager::CloseTaskGuard::manager

Non-owning manager that tracks the close.

Definition at line 2955 of file fray_manager.hpp.

◆ project

ProjectManager& fray::FrayManager::CloseTaskGuard::project

Non-owning project being closed.

Definition at line 2959 of file fray_manager.hpp.

◆ queue

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.

◆ removeOnSuccess

bool fray::FrayManager::CloseTaskGuard::removeOnSuccess = false

Whether successful completion removes the registered project.

Definition at line 2969 of file fray_manager.hpp.


The documentation for this struct was generated from the following file: