1#ifndef TATAMI_HDF5_SERIALIZE_HPP
2#define TATAMI_HDF5_SERIALIZE_HPP
9#ifndef TATAMI_HDF5_PARALLEL_LOCK
10#include "subpar/subpar.hpp"
11#ifndef SUBPAR_USES_OPENMP_RANGE
18inline auto& get_default_hdf5_lock() {
19 static std::mutex hdf5_lock;
44template<
class Function_>
46#ifdef TATAMI_HDF5_PARALLEL_LOCK
47 TATAMI_HDF5_PARALLEL_LOCK(f);
49#ifdef SUBPAR_USES_OPENMP_RANGE
50 #pragma omp critical(hdf5)
55 auto& h5lock = get_default_hdf5_lock();
56 std::lock_guard<std::mutex> thing(h5lock);
Representations for matrix data in HDF5 files.
Definition CompressedSparseMatrix.hpp:23
void serialize(Function_ f)
Definition serialize.hpp:45