1 | #include <unistd.h> |
|
|
2 | /* |
1 | /* |
3 | iom.C -- I/O multiplexor |
2 | iom.C -- I/O multiplexor |
4 | |
3 | |
5 | This program is free software; you can redistribute it and/or modify |
4 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
5 | it under the terms of the GNU General Public License as published by |
… | |
… | |
23 | |
22 | |
24 | #include <algorithm> |
23 | #include <algorithm> |
25 | #include <functional> |
24 | #include <functional> |
26 | |
25 | |
27 | #include "slog.h" |
26 | #include "slog.h" |
28 | |
|
|
29 | #include "iom.h" |
27 | #include "iom.h" |
30 | |
28 | |
31 | inline bool lowest_first (const time_watcher *a, const time_watcher *b) |
29 | inline bool lowest_first (const time_watcher *a, const time_watcher *b) |
32 | { |
30 | { |
33 | return a->at > b->at; |
31 | return a->at > b->at; |