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>
15namespace 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.
25inline std::recursive_mutex& resultHdf5Mutex() {
26 static std::recursive_mutex mutex;
27 return mutex;
28}
29}
Definition AtomicOutputFile.hpp:25
std::recursive_mutex & resultHdf5Mutex()
Access the shared recursive lock for result-file HDF5 operations.
Definition Hdf5Mutex.hpp:25