BaseObject.h
662 Bytes
// BaseObject.h: interface for the CBaseObject class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BASEOBJECT_H__D0AF6D74_0192_4C91_8FA6_2125732BAF25__INCLUDED_)
#define AFX_BASEOBJECT_H__D0AF6D74_0192_4C91_8FA6_2125732BAF25__INCLUDED_
#include <pthread.h>
#include "BaseDataTypeDef.h"
#include <stdio.h>
class CBaseObject
{
public:
CBaseObject();
virtual ~CBaseObject();
void Lock();
void Unlock();
protected:
pthread_mutex_t m_mutex;
pthread_t m_cur_thread_id;
UINT32 m_cur_count;
};
#endif // !defined(AFX_BASEOBJECT_H__D0AF6D74_0192_4C91_8FA6_2125732BAF25__INCLUDED_)