From dbdee7fa667b555d1174e46889b952cc81d3bdf7 Mon Sep 17 00:00:00 2001
From: mhahnFr <83553794+mhahnFr@users.noreply.github.com>
Date: Mon, 31 Jul 2023 18:29:22 +0200
Subject: [PATCH 01/58] Added thread local sanitizer class
---
code/threadAllocInfo/ThreadAllocInfo.cpp | 28 +++++++++++++++
code/threadAllocInfo/ThreadAllocInfo.hpp | 45 ++++++++++++++++++++++++
2 files changed, 73 insertions(+)
create mode 100644 code/threadAllocInfo/ThreadAllocInfo.cpp
create mode 100644 code/threadAllocInfo/ThreadAllocInfo.hpp
diff --git a/code/threadAllocInfo/ThreadAllocInfo.cpp b/code/threadAllocInfo/ThreadAllocInfo.cpp
new file mode 100644
index 0000000..056b2e8
--- /dev/null
+++ b/code/threadAllocInfo/ThreadAllocInfo.cpp
@@ -0,0 +1,28 @@
+/*
+ * LeakSanitizer - Small library showing information about lost memory.
+ *
+ * Copyright (C) 2023 mhahnFr
+ *
+ * This file is part of the LeakSanitizer. This library is free software:
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software Foundation,
+ * either version 3 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this library, see the file LICENSE. If not, see .
+ */
+
+#include "ThreadAllocInfo.hpp"
+
+ThreadAllocInfo::ThreadAllocInfo() {
+ // TODO: Register in the main class
+}
+
+ThreadAllocInfo::~ThreadAllocInfo() {
+ // TODO: Unregister from the main class
+}
diff --git a/code/threadAllocInfo/ThreadAllocInfo.hpp b/code/threadAllocInfo/ThreadAllocInfo.hpp
new file mode 100644
index 0000000..4caa4f2
--- /dev/null
+++ b/code/threadAllocInfo/ThreadAllocInfo.hpp
@@ -0,0 +1,45 @@
+/*
+ * LeakSanitizer - Small library showing information about lost memory.
+ *
+ * Copyright (C) 2023 mhahnFr
+ *
+ * This file is part of the LeakSanitizer. This library is free software:
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software Foundation,
+ * either version 3 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this library, see the file LICENSE. If not, see .
+ */
+
+#ifndef ThreadAllocInfo_hpp
+#define ThreadAllocInfo_hpp
+
+#include