Move the threading stuff in the evtloop module.
[apps/madmutt.git] / lib-sys / evtloop.h
index 0865039..961390a 100644 (file)
@@ -15,7 +15,7 @@
  *  MA 02110-1301, USA.
  */
 /*
- *  Copyright © 2006 Pierre Habouzit
+ *  Copyright © 2007 Pierre Habouzit
  */
 
 #ifndef MUTT_LIB_SYS_EVTLOOP_H
@@ -95,9 +95,10 @@ __must_check__ int el_job_starttls(job_t *w);
 __must_check__ ssize_t el_job_read(job_t *w, buffer_t *buf);
 __must_check__ ssize_t el_job_write(job_t *w, buffer_t *buf);
 
+void el_lock(void);
+void el_unlock(void);
 
 int el_dispatch(int timeout);
-void *el_loop(void *);
 
 void el_initialize(void);
 void el_shutdown(void);