#pragma once
|
|
#include "akLinker.h"
|
|
namespace akSTL
|
{
|
class akSTL_DLLSPEC 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;
|
|
};
|
}
|