1#ifndef TATAMI_HDF5_SERIALIZE_HPP
2#define TATAMI_HDF5_SERIALIZE_HPP
10#ifndef TATAMI_HDF5_PARALLEL_LOCK
11#include "subpar/subpar.hpp"
12#ifndef SUBPAR_USES_OPENMP_RANGE
23inline auto& get_default_hdf5_lock() {
24 static std::mutex hdf5_lock;
52template<
class Function_>
54#ifdef TATAMI_HDF5_PARALLEL_LOCK
55 TATAMI_HDF5_PARALLEL_LOCK(f);
57#ifdef SUBPAR_USES_OPENMP_RANGE
58 #pragma omp critical(hdf5)
63 auto& h5lock = get_default_hdf5_lock();
64 std::lock_guard<std::mutex> thing(h5lock);
Representations for matrix data in HDF5 files.
Definition CompressedSparseMatrix.hpp:24
void serialize(Function_ f)
Definition serialize.hpp:53