OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
Hdf5Mutex.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright 2026 Caleb Buahin
3
12
13
#pragma once
14
#include <mutex>
15
namespace
openswmm::io
{
16
// Mesh output and its diagnostic artifacts share the engine's HDF5 instance.
17
// Recursive because a mesh publication may call the source-history writer.
25
inline
std::recursive_mutex&
resultHdf5Mutex
() {
26
static
std::recursive_mutex mutex;
27
return
mutex;
28
}
29
}
openswmm::io
Definition
AtomicOutputFile.hpp:25
openswmm::io::resultHdf5Mutex
std::recursive_mutex & resultHdf5Mutex()
Access the shared recursive lock for result-file HDF5 operations.
Definition
Hdf5Mutex.hpp:25
src
engine
io
Hdf5Mutex.hpp
Generated by
1.13.2