* Stop sending queued data out the output hook */
| 708 | * Stop sending queued data out the output hook |
| 709 | */ |
| 710 | static void |
| 711 | ng_source_stop(sc_p sc) |
| 712 | { |
| 713 | ng_uncallout(&sc->intr_ch, sc->node); |
| 714 | sc->node->nd_flags &= ~NG_SOURCE_ACTIVE; |
| 715 | getmicrotime(&sc->stats.endTime); |
| 716 | sc->stats.elapsedTime = sc->stats.endTime; |
| 717 | timevalsub(&sc->stats.elapsedTime, &sc->stats.startTime); |
| 718 | } |
| 719 | |
| 720 | /* |
| 721 | * While active called every NG_SOURCE_INTR_TICKS ticks. |
no test coverage detected