From 0c66940a8e2cf64c9890519901f433b3668216b6 Mon Sep 17 00:00:00 2001
From: KEJ <kimeungju@diteam.co.kr>
Date: 수, 26 6월 2024 15:13:18 +0900
Subject: [PATCH] Ongoing80 #4942 CF AOI Review Bin File Loading 실패 개선  1. GlassRawMessenger 동기화  2. BIN파일 FindFile 제거(RawMessenger, Review 공통)  3. Unloading 시 BIN파일 제거

---
 ReviewHistory/ReveiwHistory/Singleton.h |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/ReviewHistory/ReveiwHistory/Singleton.h b/ReviewHistory/ReveiwHistory/Singleton.h
new file mode 100644
index 0000000..003088b
--- /dev/null
+++ b/ReviewHistory/ReveiwHistory/Singleton.h
@@ -0,0 +1,35 @@
+#pragma once
+
+template <typename T>
+class CSingleton
+{
+public:
+	CSingleton() {}
+	virtual ~CSingleton() {}
+
+	static void CreateClass()
+	{
+		if ( !m_pMgr )
+			m_pMgr = new T;
+	}
+
+	static void DestroyClass()
+	{
+		if ( m_pMgr )
+		{
+			delete m_pMgr;
+
+			m_pMgr = NULL;
+		}
+	}
+
+	static T* GetMgr()
+	{
+		return m_pMgr;
+	}
+
+private:
+	static T* m_pMgr;
+};
+
+template<typename T> T* CSingleton<T>::m_pMgr = NULL;
\ No newline at end of file

--
Gitblit v1.9.3