collection_resolver progress

This commit is contained in:
Sascha Kühl
2026-01-29 17:23:16 +01:00
parent 602b77e67b
commit bcec740d60
17 changed files with 100 additions and 59 deletions
+17 -3
View File
@@ -1,10 +1,12 @@
#include "matador/utils/os.hpp"
#include <sys/stat.h>
#include <cstring>
#include <vector>
#include <stdexcept>
#include <ctime>
#include <algorithm>
#include <cstring>
#include <stdexcept>
#include <vector>
#ifdef _WIN32
#include <io.h>
@@ -357,4 +359,16 @@ char* strerror(int err, char* errbuf, size_t bufsize)
#endif
}
void localtime(const time_t &in, struct tm &out) {
#if defined(__unix__)
localtime_r(&in, &out);
#elif defined(_MSC_VER)
errno_t err = localtime_s(&out, &in);
#else
static std::mutex mtx;
std::lock_guard<std::mutex> lock(mtx);
out = *std::localtime(&in);
#endif
}
}