… | |
… | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. |
13 | GNU General Public License for more details. |
14 | |
14 | |
15 | You should have received a copy of the GNU General Public License |
15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18 | */ |
18 | */ |
19 | |
19 | |
20 | #ifndef IOM_H__ |
20 | #ifndef IOM_H__ |
21 | #define IOM_H__ |
21 | #define IOM_H__ |
22 | |
22 | |
… | |
… | |
84 | |
84 | |
85 | template<class watcher> |
85 | template<class watcher> |
86 | static void unreg (watcher &w, io_manager_vec<watcher> &queue); |
86 | static void unreg (watcher &w, io_manager_vec<watcher> &queue); |
87 | |
87 | |
88 | public: |
88 | public: |
|
|
89 | #if IOM_TIME |
|
|
90 | // fetch time only |
|
|
91 | static tstamp now (); |
|
|
92 | |
|
|
93 | // set NOW |
|
|
94 | static void set_now (); |
|
|
95 | #endif |
|
|
96 | |
89 | // register a watcher |
97 | // register a watcher |
90 | #if IOM_IO |
98 | #if IOM_IO |
91 | static void reg (io_watcher &w); static void unreg (io_watcher &w); |
99 | static void reg (io_watcher &w); static void unreg (io_watcher &w); |
92 | #endif |
100 | #endif |
93 | #if IOM_TIME |
101 | #if IOM_TIME |