1td_ta_get_nthreads(3C_DTBh)reads Debugging Library Functitodn_sta_get_nthreads(3C_DB)
2
3
4

NAME

6       td_ta_get_nthreads  - gets the total number of threads in a process for
7       libc_db
8

SYNOPSIS

10       cc [ flag... ] file... -lc_db [ library... ]
11       #include <proc_service.h>
12       #include <thread_db.h>
13
14       td_err_e td_ta_get_nthreads(const td_thragent_t *ta_p, int *nthread_p);
15
16

DESCRIPTION

18       The td_ta_get_nthreads() function returns the total number  of  threads
19       in process ta_p, including any system threads. System threads are those
20       created by libc or libc_db on its own behalf. The number of threads  is
21       written into  *nthread_p.
22

RETURN VALUES

24       TD_OK       The call completed successfully.
25
26
27       TD_BADTA    An invalid internal process handle was passed in.
28
29
30       TD_BADPH    There  is  a  NULL  external process handle associated with
31                   this internal process handle.
32
33
34       TD_DBERR    A call to one of the imported interface routines failed.
35
36
37       TD_ERR      The nthread_p argument was  NULL,  or  a  libc_db  internal
38                   error occurred.
39
40

ATTRIBUTES

42       See attributes(5) for description of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
49       ├─────────────────────────────┼─────────────────────────────┤
50       │MT-Level                     │Safe                         │
51       └─────────────────────────────┴─────────────────────────────┘
52

SEE ALSO

54       libc_db(3LIB), attributes(5), threads(5)
55
56
57
58SunOS 5.11                        20 Oct 1998        td_ta_get_nthreads(3C_DB)
Impressum