aboutsummaryrefslogtreecommitdiff
path: root/zenstore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-26 22:07:11 +0200
committerStefan Boberg <[email protected]>2021-09-26 22:07:11 +0200
commit9e7d8c9f4b47cc6ca9bdcc79282c0144a797110e (patch)
treea5f2fe03725913ea85efa93c1c05300f2836beb1 /zenstore/include
parentAdded http_requests logger for (optionally) logging HTTP requests (diff)
downloadzen-9e7d8c9f4b47cc6ca9bdcc79282c0144a797110e.tar.xz
zen-9e7d8c9f4b47cc6ca9bdcc79282c0144a797110e.zip
Reimplemented CasLogFile in terms of BasicFile
This removes another ATL dependency in favour of something more platform independent
Diffstat (limited to 'zenstore/include')
-rw-r--r--zenstore/include/zenstore/caslog.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/zenstore/include/zenstore/caslog.h b/zenstore/include/zenstore/caslog.h
index 1fbda0265..00b987383 100644
--- a/zenstore/include/zenstore/caslog.h
+++ b/zenstore/include/zenstore/caslog.h
@@ -9,9 +9,9 @@
#include <zencore/thread.h>
#include <zencore/uid.h>
#include <zencore/windows.h>
+#include <zenstore/basicfile.h>
#include <zenstore/cas.h>
-#include <atlfile.h>
#include <functional>
namespace zen {
@@ -47,10 +47,10 @@ private:
static_assert(sizeof(FileHeader) == 64);
private:
- CAtlFile m_File;
- FileHeader m_Header;
- size_t m_RecordSize = 1;
- uint64_t m_AppendOffset = 0;
+ BasicFile m_File;
+ FileHeader m_Header;
+ size_t m_RecordSize = 1;
+ std::atomic<uint64_t> m_AppendOffset = 0;
};
template<typename T>