Skip to content

Commit

Permalink
Rename vbp_thread to vbp_scheduler for clarity
Browse files Browse the repository at this point in the history
This background thread does not run the actual probes, but schedules tasks which
do (vbp_task).

Rename suggested by phk.
  • Loading branch information
nigoroll committed Jul 9, 2024
1 parent 7083222 commit cf61df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/varnishd/cache/cache_backend_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ vbp_task(struct worker *wrk, void *priv)
*/

static void * v_matchproto_(bgthread_t)
vbp_thread(struct worker *wrk, void *priv)
vbp_scheduler(struct worker *wrk, void *priv)
{
vtim_real now, nxt;
struct vbp_target *vt;
Expand Down Expand Up @@ -808,5 +808,5 @@ VBP_Init(void)
vbp_heap = VBH_new(NULL, vbp_cmp, vbp_update);
AN(vbp_heap);
PTOK(pthread_cond_init(&vbp_cond, NULL));
WRK_BgThread(&thr, "backend-poller", vbp_thread, NULL);
WRK_BgThread(&thr, "backend-probe-scheduler", vbp_scheduler, NULL);
}

0 comments on commit cf61df5

Please sign in to comment.