* This routine is called on every clock tick. We poll connected hooks * for queued frames by calling pipe_dequeue(). */
| 888 | * for queued frames by calling pipe_dequeue(). |
| 889 | */ |
| 890 | static void |
| 891 | ngp_callout(node_p node, hook_p hook, void *arg1, int arg2) |
| 892 | { |
| 893 | const priv_p priv = NG_NODE_PRIVATE(node); |
| 894 | struct timeval now; |
| 895 | |
| 896 | priv->timer_scheduled = 0; |
| 897 | microuptime(&now); |
| 898 | if (priv->upper.hook != NULL) |
| 899 | pipe_dequeue(&priv->upper, &now); |
| 900 | if (priv->lower.hook != NULL) |
| 901 | pipe_dequeue(&priv->lower, &now); |
| 902 | } |
| 903 | |
| 904 | /* |
| 905 | * Shutdown processing |
nothing calls this directly
no test coverage detected