Skip to content

Commit cf61df5

Browse files
committed
Rename vbp_thread to vbp_scheduler for clarity
This background thread does not run the actual probes, but schedules tasks which do (vbp_task). Rename suggested by phk.
1 parent 7083222 commit cf61df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/varnishd/cache/cache_backend_probe.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ vbp_task(struct worker *wrk, void *priv)
499499
*/
500500

501501
static void * v_matchproto_(bgthread_t)
502-
vbp_thread(struct worker *wrk, void *priv)
502+
vbp_scheduler(struct worker *wrk, void *priv)
503503
{
504504
vtim_real now, nxt;
505505
struct vbp_target *vt;
@@ -808,5 +808,5 @@ VBP_Init(void)
808808
vbp_heap = VBH_new(NULL, vbp_cmp, vbp_update);
809809
AN(vbp_heap);
810810
PTOK(pthread_cond_init(&vbp_cond, NULL));
811-
WRK_BgThread(&thr, "backend-poller", vbp_thread, NULL);
811+
WRK_BgThread(&thr, "backend-probe-scheduler", vbp_scheduler, NULL);
812812
}

0 commit comments

Comments
 (0)