projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Have a way to wait until a worker state changes.
[apps/madmutt.git]
/
lib-sys
/
evtloop.h
diff --git
a/lib-sys/evtloop.h
b/lib-sys/evtloop.h
index
961390a
..
bb7c50e
100644
(file)
--- a/
lib-sys/evtloop.h
+++ b/
lib-sys/evtloop.h
@@
-58,13
+58,14
@@
typedef struct job_t {
int fd;
int ssf;
int fd;
int ssf;
- gnutls_session_t session;
- gnutls_certificate_credentials_t xcred;
-
+ unsigned cond : 1;
el_state state : 2;
el_mode mode : 3;
el_mode emode : 3;
el_state state : 2;
el_mode mode : 3;
el_mode emode : 3;
+ gnutls_session_t session;
+ gnutls_certificate_credentials_t xcred;
+
struct timeval mru;
int (*llp)(struct job_t *);
const struct machine_t *m;
struct timeval mru;
int (*llp)(struct job_t *);
const struct machine_t *m;
@@
-97,6
+98,7
@@
__must_check__ ssize_t el_job_write(job_t *w, buffer_t *buf);
void el_lock(void);
void el_unlock(void);
void el_lock(void);
void el_unlock(void);
+void el_wait(job_t *w);
int el_dispatch(int timeout);
int el_dispatch(int timeout);