| 5980 | #ifdef __WIN_DRIVER__ |
| 5981 | static HANDLE readyEvent, goEvent; |
| 5982 | DWORD WINAPI emu_exec_time_proc(LPVOID lpParameter) |
| 5983 | { |
| 5984 | SetEvent(readyEvent); |
| 5985 | WaitForSingleObject(goEvent,INFINITE); |
| 5986 | lua_State *L = (lua_State *)lpParameter; |
| 5987 | lua_pushvalue(L, 2); |
| 5988 | int ret = lua_pcall(L, 0, 0, 0); |
| 5989 | lua_settop(L,0); |
| 5990 | lua_pushinteger(L, ret); |
| 5991 | SetEvent(readyEvent); |
| 5992 | return 0; |
| 5993 | } |
| 5994 | |
| 5995 | static void emu_exec_time_hook(lua_State *L, lua_Debug *dbg) { |
| 5996 | luaL_error(L, "exec_time timeout"); |
nothing calls this directly
no test coverage detected