From 308273fef97381356e96fcd9c17011409a3c2920 Mon Sep 17 00:00:00 2001
From: kojingeun <diteam.co.kr>
Date: 수, 07 6월 2023 10:28:21 +0900
Subject: [PATCH] Ongoing50 #4517 CF AOI Review 결과 파일 찾기 실패 개선 1. Find Bin File 찾는 Library 변경  - CRT _findfirsti64 / _findnexti64 -> C++17 Filesystem directory_iterator  - 파일 탐색 시간 20k Files(80GB) 1sec 소요

---
 ReviewHistory/include/akGraph/akSyncObject.h |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/ReviewHistory/include/akGraph/akSyncObject.h b/ReviewHistory/include/akGraph/akSyncObject.h
new file mode 100644
index 0000000..bd36270
--- /dev/null
+++ b/ReviewHistory/include/akGraph/akSyncObject.h
@@ -0,0 +1,31 @@
+#pragma once
+
+
+
+
+class AFX_EXT_CLASS CakSyncObject
+{
+public:
+	CakSyncObject(void);
+	virtual ~CakSyncObject(void);
+
+public:
+	//읽기 지정을 하였을때... 이미 어디서 쓰고 있다면.. 기다렸다가 다음을 수행한다.
+	//bWait = false 일경우.. 어딘가에서 쓰고 있다면 false를 반환하고 끝내버린다.
+	bool SetRead(bool bWait = true);  
+	//쓰기 지정을 하였을때... 이미 어디서 읽고 있다면.. 기다렸다가 다음을 수행한다.
+	bool SetWrite(bool bWait = true);
+	int SetReadRelease(); //현재 남아있는 읽기 카운트 반환
+	void SetWriteRelease();
+
+	int GetReadCount(){return m_nReadCount;}; //읽기 호출한 횟수 반환
+	bool GetWriteState(){return m_bWrite;}; //0이 될때까지 그리는 루틴은 무한 루프가 돈다.
+	
+
+protected:
+	
+private:
+	bool m_bWrite; 
+	int m_nReadCount;
+	
+};

--
Gitblit v1.9.3