| 12345678910111213141516171819202122232425262728293031 |
- #include "precompile.h"
- #include "ioevent.h"
- #include "ioreactor.h"
- struct ioreactor_ops
- {
- void (*destroy)(struct ioreactor_s *reactor);
- };
- struct ioreactor_s
- {
- //....
- int reserved;
- };
- struct ioreactor_msg_wfmo_s
- {
- struct ioreactor_s base;
- HANDLE arr_handle[2 * MAXIMUM_WAIT_OBJECTS];
- int curr_poll_idx;
- };
- int ioreactor_create_msg_wfmo(ioreactor_t **p_reactor)
- {
- //...
- return 0;
- }
- int ioreactor_bind(ioreactor_t *reactor, int type, int fd);
- int ioreactor_unbind(ioreactor_t *reactor, int type, int fd);
|