MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tid_free_batch

Function tid_free_batch

freebsd/kern/kern_thread.c:280–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280static void
281tid_free_batch(lwpid_t *batch, int n)
282{
283 int i;
284
285 mtx_lock(&tid_lock);
286 for (i = 0; i < n; i++) {
287 tid_free_locked(batch[i]);
288 }
289 mtx_unlock(&tid_lock);
290}
291
292/*
293 * Batching for thread reapping.

Callers 2

tidbatch_processFunction · 0.85
tidbatch_finalFunction · 0.85

Calls 3

tid_free_lockedFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected