MCPcopy Create free account
hub / github.com/git/git / ut_101timer_thread_proc

Function ut_101timer_thread_proc

t/helper/test-trace2.c:274–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272};
273
274static void *ut_101timer_thread_proc(void *_ut_101_data)
275{
276 struct ut_101_data *data = _ut_101_data;
277 int k;
278
279 trace2_thread_start("ut_101");
280
281 for (k = 0; k < data->count; k++) {
282 trace2_timer_start(TRACE2_TIMER_ID_TEST2);
283 sleep_millisec(data->delay);
284 trace2_timer_stop(TRACE2_TIMER_ID_TEST2);
285 }
286
287 trace2_thread_exit();
288 return NULL;
289}
290
291/*
292 * Multi-threaded timer test. Create several threads that each create

Callers

nothing calls this directly

Calls 3

trace2_timer_startFunction · 0.85
sleep_millisecFunction · 0.85
trace2_timer_stopFunction · 0.85

Tested by

no test coverage detected