Thread CriticalSection

2011. 11. 8. 16:13언어/C++ Builder

FreeOnTerminate = true : 스레드가 종료된 후에 오브젝트를 자동적으로 해제시켜 줄 수 있다.


CriticalSection의 Proto Type

TCriticalSection *MyCriticalSection = new TCriticalSeciton;

MyCriticalSection->Enter() or MyCriticalSection->Acquire()

<code>

MyCriticalSection->Leave();
MyCriticalSection->Free(); 

//////////////////////////////////////////////////////////////