blob: cdb21f866d63190da2b3de17291082692da28328 (
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
34
35
36
37
38
39
40
|
#ifndef _ASURA_COROUTINE_H_
#define _ASURA_COROUTINE_H_
#include <asura-utils/Classes.h>
#include "../Scripting/Portable.hpp"
namespace_begin(AsuraEngine)
namespace_begin(Threads)
///
/// luaЭ̣һЩ
///
class Coroutine ASURA_FINAL
: public AEScripting::Portable<Coroutine>
{
public:
LUAX_DECL_FACTORY(Coroutine);
private:
///
/// ǰЭ̵state
///
lua_State* m_ThreadState;
LUAX_DECL_METHOD(_New);
LUAX_DECL_METHOD(_Run);
};
namespace_end
namespace_end
namespace AEThreading = AsuraEngine::Threads;
#endif
|