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

Function tid_free_locked

freebsd/kern/kern_thread.c:257–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static void
258tid_free_locked(lwpid_t rtid)
259{
260 lwpid_t tid;
261
262 mtx_assert(&tid_lock, MA_OWNED);
263 KASSERT(rtid >= NO_PID,
264 ("%s: invalid tid %d\n", __func__, rtid));
265 tid = rtid - NO_PID;
266 KASSERT(bit_test(tid_bitmap, tid) != 0,
267 ("thread ID %d not allocated\n", rtid));
268 bit_clear(tid_bitmap, tid);
269}
270
271static void
272tid_free(lwpid_t rtid)

Callers 2

tid_freeFunction · 0.85
tid_free_batchFunction · 0.85

Calls 3

mtx_assertFunction · 0.85
bit_testFunction · 0.85
bit_clearFunction · 0.85

Tested by

no test coverage detected