projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved timeq loop to the "main thread" and made it more precise
[NeonServV5.git]
/
src
/
timeq.h
diff --git
a/src/timeq.h
b/src/timeq.h
index 762df29a2faf2aeaa7d3e7749a6cad9b614b6b3b..4e943b7de8003ae4d38616e6e291cb7a71889ed5 100644
(file)
--- a/
src/timeq.h
+++ b/
src/timeq.h
@@
-24,7
+24,7
@@
typedef TIMEQ_CALLBACK(timeq_callback_t);
struct timeq_entry {
char *name;
struct timeq_entry {
char *name;
-
time_t
execute;
+
struct timeval
execute;
timeq_callback_t *callback;
void *data;
timeq_callback_t *callback;
void *data;
@@
-34,7
+34,9
@@
struct timeq_entry {
void init_timeq();
void timeq_tick();
struct timeq_entry* timeq_add(int seconds, timeq_callback_t *callback, void *data);
void init_timeq();
void timeq_tick();
struct timeq_entry* timeq_add(int seconds, timeq_callback_t *callback, void *data);
+struct timeq_entry* timeq_uadd(int useconds, timeq_callback_t *callback, void *data);
struct timeq_entry* timeq_add_name(char *name, int seconds, timeq_callback_t *callback, void *data);
struct timeq_entry* timeq_add_name(char *name, int seconds, timeq_callback_t *callback, void *data);
+struct timeq_entry* timeq_uadd_name(char *name, int useconds, timeq_callback_t *callback, void *data);
int timeq_del(struct timeq_entry* entry);
int timeq_del_name(char *name);
int timeq_name_exists(char *name);
int timeq_del(struct timeq_entry* entry);
int timeq_del_name(char *name);
int timeq_name_exists(char *name);