diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 03:32:09 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 03:32:09 +0000 |
commit | 7115c12fbc9aae1cd46fdf049697a27fb996181a (patch) | |
tree | 2e918f54f729766701aabdef488a6461bc623da1 /src/timeout.h | |
parent | 7aaba59909e8527190694285f56ca68772c97f6a (diff) | |
download | luasocket-7115c12fbc9aae1cd46fdf049697a27fb996181a.tar.gz luasocket-7115c12fbc9aae1cd46fdf049697a27fb996181a.tar.bz2 luasocket-7115c12fbc9aae1cd46fdf049697a27fb996181a.zip |
Moving on to beta2.
Diffstat (limited to 'src/timeout.h')
-rw-r--r-- | src/timeout.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/timeout.h b/src/timeout.h index 6b105c3..817922f 100644 --- a/src/timeout.h +++ b/src/timeout.h | |||
@@ -10,19 +10,19 @@ | |||
10 | 10 | ||
11 | /* timeout control structure */ | 11 | /* timeout control structure */ |
12 | typedef struct t_tm_ { | 12 | typedef struct t_tm_ { |
13 | int total; /* total number of miliseconds for operation */ | 13 | double total; /* total number of miliseconds for operation */ |
14 | int block; /* maximum time for blocking calls */ | 14 | double block; /* maximum time for blocking calls */ |
15 | int start; /* time of start of operation */ | 15 | double start; /* time of start of operation */ |
16 | } t_tm; | 16 | } t_tm; |
17 | typedef t_tm *p_tm; | 17 | typedef t_tm *p_tm; |
18 | 18 | ||
19 | int tm_open(lua_State *L); | 19 | int tm_open(lua_State *L); |
20 | void tm_init(p_tm tm, int block, int total); | 20 | void tm_init(p_tm tm, double block, double total); |
21 | int tm_get(p_tm tm); | 21 | double tm_get(p_tm tm); |
22 | int tm_getretry(p_tm tm); | 22 | double tm_getretry(p_tm tm); |
23 | p_tm tm_markstart(p_tm tm); | 23 | p_tm tm_markstart(p_tm tm); |
24 | int tm_getstart(p_tm tm); | 24 | double tm_getstart(p_tm tm); |
25 | int tm_gettime(void); | 25 | double tm_gettime(void); |
26 | int tm_meth_settimeout(lua_State *L, p_tm tm); | 26 | int tm_meth_settimeout(lua_State *L, p_tm tm); |
27 | 27 | ||
28 | #endif /* TM_H */ | 28 | #endif /* TM_H */ |