blob: b07b00729c248849a12dd70a3dbda95beaa1da02 (
plain)
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
29
30
31
32
33
|
#ifndef __LUAX_DOG_H__
#define __LUAX_DOG_H__
#include "luax_config.h"
namespace Luax
{
///
/// LuaxNativeClassʵüwatch dogֻwatch dogͨʱſdelete
///
class LuaxWatchDog
{
public:
LuaxWatchDog()
: mVMRef(0)
, mNativeRef(0)
{
}
inline operator bool()
{
return mVMRef == 0 && mNativeRef == 0;
}
uint mVMRef; // йܸ
uint mNativeRef; //
};
}
#endif
|