| 385 | } |
| 386 | |
| 387 | void |
| 388 | NetHandler::signalActivity() |
| 389 | { |
| 390 | #if HAVE_EVENTFD |
| 391 | uint64_t counter = 1; |
| 392 | ATS_UNUSED_RETURN(write(thread->evfd, &counter, sizeof(uint64_t))); |
| 393 | #else |
| 394 | char dummy = 1; |
| 395 | ATS_UNUSED_RETURN(write(thread->evpipe[1], &dummy, 1)); |
| 396 | #endif |
| 397 | } |
| 398 | |
| 399 | bool |
| 400 | NetHandler::manage_active_queue(NetEvent *enabling_ne, bool ignore_queue_size = false) |