1td_thr_validate(3C_DB)Threads Debugging Library Functionstd_thr_validate(3C_DB)
2
3
4
6 td_thr_validate - test a thread handle for validity
7
9 cc [ flag... ] file... -lc_db [ library... ]
10 #include <proc_service.h>
11 #include <thread_db.h>
12
13 td_err_e td_thr_validate(const td_thrhandle_t *th_p);
14
15
17 The td_thr_validate() function tests whether th_p is a valid thread
18 handle. A valid thread handle can become invalid if its thread exits.
19
21 TD_OK The call completed successfully. th_p is a valid thread
22 handle.
23
24
25 TD_BADTH th_p was NULL.
26
27
28 TD_DBERR A call to one of the imported interface routines failed.
29
30
31 TD_NOTHR th_p is not a valid thread handle.
32
33
34 TD_ERR A libc_db internal error occurred.
35
36
38 See attributes(5) for description of the following attributes:
39
40
41
42
43 ┌─────────────────────────────┬─────────────────────────────┐
44 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │MT-Level │Safe │
47 └─────────────────────────────┴─────────────────────────────┘
48
50 libc_db(3LIB), attributes(5)
51
52
53
54SunOS 5.11 20 Oct 1998 td_thr_validate(3C_DB)