TD_THR_ITER(3)

NAME
td_thr_iter - iterate over the threads in a process

LIBRARY
libpthread_dbg

SYNOPSIS
#include <pthread_dbg.h>
int
td_thr_iter(td_proc_t *proc, int (*call)(td_thread_t *, void *), void *callarg);

DESCRIPTION
The td_thr_iter() function iterates over all threads in the proc process and calls the call function for each of them with the callarg argument.

RETURN VALUES
If successful, the td_thr_iter function will return TD_ERR_OK. Otherwise an error number will be returned to indicate failure as described in pthread_dbg(3).

SEE ALSO
pthread(3), pthread_dbg(3)

HISTORY
The td_thr_iter function first appeared in NetBSD 2.0.

AUTHORS
-nosplit Nathan J. Williams <nathanw@NetBSD.org>

This manual page was written by Kamil Rytarowski <kamil@NetBSD.org>.