MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ save_spatial_snapshot()

bool MayaFlux::IO::IOManager::save_spatial_snapshot ( std::vector< IO::SpatialCaptureSource >  sources,
const std::string &  path_pattern 
)

Save every source once, as a single time sample, with a millisecond epoch timestamp spliced into the path, queued asynchronously.

The timestamp is computed on the worker thread at the moment the write actually runs, mirroring save_mesh_snapshot, so repeated calls in quick succession still each land in their own file.

Returns
True once the task is queued; open or write failure is logged from the task and does not surface here.

Definition at line 1507 of file IOManager.cpp.

1510{
1511 track_save_task(std::async(std::launch::async,
1512 [sources = std::move(sources), path_pattern]() -> bool {
1513 return Detail::execute_spatial_snapshot(path_pattern, sources);
1514 }));
1515 return true;
1516}
void track_save_task(std::future< bool > fut)
Retain a save task in m_save_tasks and opportunistically reclaim finished ones.
bool execute_spatial_snapshot(const std::string &path_pattern, const std::vector< SpatialCaptureSource > &sources)

References MayaFlux::IO::Detail::execute_spatial_snapshot(), and track_save_task().

+ Here is the call graph for this function: