summaryrefslogtreecommitdiff
path: root/Source/modules/asura-base/Threads/Coroutine.h
blob: d1d3a5710008fa96d5e4ec3eca9b7fc642eff59e (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-base/Classes.h>

#include "../Scripting/Scripting.h"

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