Evtloop fixes.
New way to connect a job_t. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Have a way to wait until a worker state changes. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Move the threading stuff in the evtloop module. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Move the event loop to evtloop.c, and wake up sleeping jobs every 10 seconds. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
have an array of all started jobs Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Have an event loop thread. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Add starttls Signed-off-by: Pierre Habouzit <madcoder@debian.org>
ssf is useful for sasl Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more support for gnutls Signed-off-by: Pierre Habouzit <madcoder@debian.org>
annotations, indent Signed-off-by: Pierre Habouzit <madcoder@debian.org>
refactor read function, implement write. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Have an el_job_read function. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
start a job Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more job functions Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Lay off the ground of our very efficient event loop. Signed-off-by: Pierre Habouzit <madcoder@debian.org>