diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-13 08:18:20 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-13 08:18:20 +0000 |
commit | 3cac7824479e0eef3b0bc6e33e5b4d157119a646 (patch) | |
tree | 50b1ca62db5a55df61dcea29017a1852d1e01f9b /lcd4linux.c | |
parent | 14bc006adad8578e31e557d7ffb57971284a0846 (diff) | |
download | lcd4linux-3cac7824479e0eef3b0bc6e33e5b4d157119a646.tar.gz |
[lcd4linux @ 2004-01-13 08:18:07 by reinelt]
timer queues added
liblcd4linux deactivated turing transformation to new layout
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@308 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'lcd4linux.c')
-rw-r--r-- | lcd4linux.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lcd4linux.c b/lcd4linux.c index a69e546..0d6290f 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -1,4 +1,4 @@ -/* $Id: lcd4linux.c,v 1.59 2004/01/12 03:51:01 reinelt Exp $ +/* $Id: lcd4linux.c,v 1.60 2004/01/13 08:18:19 reinelt Exp $ * * LCD4Linux * @@ -22,6 +22,10 @@ * * * $Log: lcd4linux.c,v $ + * Revision 1.60 2004/01/13 08:18:19 reinelt + * timer queues added + * liblcd4linux deactivated turing transformation to new layout + * * Revision 1.59 2004/01/12 03:51:01 reinelt * evaluating the 'Variables' section in the config file * @@ -291,6 +295,7 @@ #include <fcntl.h> #include <errno.h> #include <signal.h> +#include <time.h> #include "cfg.h" #include "debug.h" @@ -298,7 +303,8 @@ #include "udelay.h" #include "display.h" // Fixme: remove me... #include "drv.h" -#include "processor.h" +#include "processor.h" // Fixme: remove me... +#include "timer.h" #include "layout.h" #include "plugin.h" @@ -612,6 +618,12 @@ int main (int argc, char *argv[]) process (); usleep(tack*1000); } + } else { + while (got_signal==0) { + struct timespec delay; + if (timer_process(&delay)<0) break; + nanosleep(&delay, NULL); + } } debug ("leaving main loop"); |