chore(deps): bump VoidLibrary to de1fdcda
VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 4m17s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 4m25s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 5m11s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m25s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m12s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Successful in 6m20s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 22s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m35s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m38s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 2m42s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 2m45s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 2m55s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Successful in 4m10s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 55s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 15s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m29s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m34s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Skipped
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 48s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 1m54s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Successful in 16s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 4m0s
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 1 · Requirements (push) Successful in 6s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 4m17s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 4m25s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 5m11s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m25s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m12s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Successful in 6m20s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 22s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m35s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m38s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 2m42s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 2m45s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 2m55s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Successful in 4m10s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 55s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 15s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m29s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m34s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Skipped
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 48s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 1m54s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Successful in 16s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 4m0s
VoidBuildSystem CI / 5 · Release (push) Skipped
The new pin vendors SQLite for every platform (Sqlite is now qualified on Windows), implements FileLock, symlink swap, reflink copy and timestamps on Windows (Void/Library#66), so the local Win32 lock and mtime workarounds go back to the VoidLibrary primitives, and VBS enables Void::Sqlite unconditionally since Void resolves its own backend. Verified: MinGW-w64 Windows build of all targets, vbs under Wine, SDK suite 17/17 under Wine, and the Linux suite 8/8.
This commit is contained in:
1 parent
e333bbe84b
commit
8e3fffd636
7 files changed
+14
-122
No files matched your search
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <cstdint>
|
||||
#include <filesystem>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#include <string>
|
||||
@@ -32,31 +31,12 @@ class FileLock {
|
||||
acquire(const std::filesystem::path &lock_path, LockMode mode = LockMode::Exclusive,
|
||||
bool non_blocking = false);
|
||||
|
||||
[[nodiscard]] bool valid() const noexcept {
|
||||
#if defined(_WIN32)
|
||||
return handle_ != nullptr;
|
||||
#else
|
||||
return lock_.locked();
|
||||
#endif
|
||||
}
|
||||
void release() noexcept {
|
||||
#if defined(_WIN32)
|
||||
handle_.reset();
|
||||
#else
|
||||
lock_.unlock();
|
||||
#endif
|
||||
}
|
||||
[[nodiscard]] bool valid() const noexcept { return lock_.locked(); }
|
||||
void release() noexcept { lock_.unlock(); }
|
||||
|
||||
private:
|
||||
#if defined(_WIN32)
|
||||
explicit FileLock(std::shared_ptr<void> handle) noexcept : handle_{std::move(handle)} {}
|
||||
// Win32 HANDLE (CreateFileW + LockFileEx) with an unlock/close deleter, because
|
||||
// Void::FileSystem::FileLock is POSIX-only (Void/Library issue #66).
|
||||
std::shared_ptr<void> handle_;
|
||||
#else
|
||||
explicit FileLock(Void::FileSystem::FileLock lock) noexcept : lock_{std::move(lock)} {}
|
||||
Void::FileSystem::FileLock lock_;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct FileMetadata {
|
||||
|
||||
Reference in new issue
Block a user