1td_thr_lockowner(3C_DB)Threads Debugging Library Functiontsd_thr_lockowner(3C_DB)
2
3
4
6 td_thr_lockowner - iterate over the set of locks owned by a thread
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_lockowner(const td_thrhandle_t *th_p, td_sync_iter_f *cb,
14 void *cb_data_p);
15
16
18 The td_thr_lockowner() function calls the iterator function cb once for
19 every mutex that is held by the thread whose handle is th_p. The syn‐
20 chronization handle and the pointer cb_data_p are passed to the func‐
21 tion. See td_ta_thr_iter(3C_DB) for a similarly structured function.
22
23
24 Iteration terminates early if the callback function cb returns a non-
25 zero value.
26
28 TD_OK The call completed successfully.
29
30
31 TD_BADTH An invalid thread handle was passed in.
32
33
34 TD_BADPH There is a NULL external process handle associated with
35 this internal process handle.
36
37
38 TD_DBERR A call to one of the imported interface routines failed.
39
40
41 TD_ERR A libc_db internal error occurred.
42
43
45 See attributes(5) for description of the following attributes:
46
47
48
49
50 ┌─────────────────────────────┬─────────────────────────────┐
51 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │MT-Level │Safe │
54 └─────────────────────────────┴─────────────────────────────┘
55
57 libc_db(3LIB), td_ta_thr_iter(3C_DB), attributes(5)
58
59
60
61SunOS 5.11 20 Oct 1998 td_thr_lockowner(3C_DB)