]>
Commit | Line | Data |
---|---|---|
1 | /* Copyright (C) Chris Porter 2007 */ | |
2 | ||
3 | #ifndef _LUA_SCHED_H | |
4 | #define _LUA_SCHED_H | |
5 | ||
6 | #include "lua.h" | |
7 | #include "luabot.h" | |
8 | ||
9 | struct lua_scheduler; | |
10 | ||
11 | typedef struct lua_scheduler_entry { | |
12 | int ref; | |
13 | void *psch; | |
14 | struct lua_scheduler *sched; | |
15 | struct lua_scheduler_entry *prev, *next; | |
16 | } lua_scheduler_entry; | |
17 | ||
18 | typedef struct lua_scheduler { | |
19 | unsigned int count; | |
20 | lua_State *ps; | |
21 | lua_scheduler_entry *entries; | |
22 | struct lua_scheduler *next; | |
23 | } lua_scheduler; | |
24 | ||
25 | #endif | |
26 |