| 106 | #endif |
| 107 | |
| 108 | Pollfd * |
| 109 | alloc() |
| 110 | { |
| 111 | #if TS_USE_EPOLL |
| 112 | // XXX : We need restrict max size based on definition. |
| 113 | if (nfds >= POLL_DESCRIPTOR_SIZE) { |
| 114 | nfds = 0; |
| 115 | } |
| 116 | return &pfd[nfds++]; |
| 117 | #else |
| 118 | return nullptr; |
| 119 | #endif |
| 120 | } |
| 121 | }; |
no outgoing calls
no test coverage detected