| 28 | struct Poll |
| 29 | { |
| 30 | Poll() |
| 31 | { |
| 32 | // Need to explicitly instantiate the watchers. |
| 33 | watcher.io.reset(new ev_io()); |
| 34 | watcher.async.reset(new ev_async()); |
| 35 | } |
| 36 | |
| 37 | // An I/O watcher for checking for readability or writeability and |
| 38 | // an async watcher for being able to discard the polling. |