diff options
author | chai <chaifix@163.com> | 2019-04-06 07:39:49 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-06 07:39:49 +0800 |
commit | e47baca4f23db43ec91fbf64d5d06d7c0dbee495 (patch) | |
tree | 9e909413bbf61834570e7dbdbe37fc8705f12730 /source/3rd-party/Luax/luax_watchdog.h | |
parent | e13616b5c40f912853be99f0603f0e4c97b22062 (diff) |
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_watchdog.h')
-rw-r--r-- | source/3rd-party/Luax/luax_watchdog.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/source/3rd-party/Luax/luax_watchdog.h b/source/3rd-party/Luax/luax_watchdog.h new file mode 100644 index 0000000..b07b007 --- /dev/null +++ b/source/3rd-party/Luax/luax_watchdog.h @@ -0,0 +1,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
\ No newline at end of file |