-
Notifications
You must be signed in to change notification settings - Fork 14
/
luasandbox_timer.h
23 lines (19 loc) · 1004 Bytes
/
luasandbox_timer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LUASANDBOX_TIMER_H
#define LUASANDBOX_TIMER_H
#include "luasandbox_types.h"
void luasandbox_timer_minit();
void luasandbox_timer_mshutdown();
void luasandbox_timer_create(luasandbox_timer_set * lts, struct _php_luasandbox_obj * sandbox);
void luasandbox_timer_set_limit(luasandbox_timer_set * lts,
struct timespec * timeout);
int luasandbox_timer_enable_profiler(luasandbox_timer_set * lts, struct timespec * period);
int luasandbox_timer_start(luasandbox_timer_set * lts);
void luasandbox_timer_stop(luasandbox_timer_set * lts);
void luasandbox_timer_destroy(luasandbox_timer_set * lts);
void luasandbox_timer_get_usage(luasandbox_timer_set * lts, struct timespec * ts);
void luasandbox_timer_pause(luasandbox_timer_set * lts);
void luasandbox_timer_unpause(luasandbox_timer_set * lts);
int luasandbox_timer_is_paused(luasandbox_timer_set * lts);
void luasandbox_timer_timeout_error(lua_State *L);
int luasandbox_timer_is_expired(luasandbox_timer_set * lts);
#endif /*LUASANDBOX_TIMER_H*/