#ifdef CMD_ANSYNC class CRingBuffer { public: CRingBuffer(); int Init(int nObj, int nObjSize); int Fini(); int Input(void * pObj); int Output(void * pObj); private: int m_nObj; int m_nObjSize; int m_nInput; int m_nOutput; void * m_pObj; CRITICAL_SECTION m_stCS; int OPObj(int nAction, void * pObj); }; #endif