e30d6793
Zou XiKun
v0.0.1
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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_)
|