summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/threading/coroutine.h
blob: 830dcd2eb2b817b80d6934ae84e8f3bf9a751b81 (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(Threading)

///
/// 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::Threading;

#endif