MCPcopy Create free account
hub / github.com/HelenOS/helenos / task_release

Function task_release

kernel/generic/src/proc/task.c:309–313  ·  view source on GitHub ↗

Release a reference to a task. * * The last one to release a reference to a task destroys the task. * * @param task Task to be released. * */

Source from the content-addressed store, hash-verified

307 *
308 */
309void task_release(task_t *task)
310{
311 if ((atomic_predec(&task->refcount)) == 0)
312 task_destroy(task);
313}
314
315#ifdef __32_BITS__
316

Callers 6

get_stats_ipccsFunction · 0.85
task_doneFunction · 0.85
thread_destroyFunction · 0.85
ipc_print_taskFunction · 0.85

Calls 1

task_destroyFunction · 0.85

Tested by

no test coverage detected