[dovecot-cvs] dovecot/src/lib ioloop.c,1.10,1.11 ioloop.h,1.6,1.7
cras at procontrol.fi
cras at procontrol.fi
Mon Jan 27 02:46:58 EET 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv21023
Modified Files:
ioloop.c ioloop.h
Log Message:
Added io_loop_is_running()
Index: ioloop.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ioloop.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- ioloop.c 11 Jan 2003 19:55:56 -0000 1.10
+++ ioloop.c 27 Jan 2003 00:46:55 -0000 1.11
@@ -304,6 +304,11 @@
ioloop->running = TRUE;
}
+int io_loop_is_running(struct ioloop *ioloop)
+{
+ return ioloop->running;
+}
+
struct ioloop *io_loop_create(pool_t pool)
{
struct ioloop *ioloop;
Index: ioloop.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ioloop.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ioloop.h 11 Jan 2003 19:55:56 -0000 1.6
+++ ioloop.h 27 Jan 2003 00:46:55 -0000 1.7
@@ -39,6 +39,8 @@
void io_loop_run(struct ioloop *ioloop);
void io_loop_stop(struct ioloop *ioloop); /* safe to run in signal handler */
+int io_loop_is_running(struct ioloop *ioloop);
+
/* call these if you wish to run the iteration only once */
void io_loop_set_running(struct ioloop *ioloop);
void io_loop_handler_run(struct ioloop *ioloop);
More information about the dovecot-cvs
mailing list