Changeset 53652 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_proc.h
- Timestamp:
- Jan 2, 2015 12:19:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_proc.h
r53634 r53652 28 28 #define _DT_PROC_H 29 29 30 #ifndef VBOX 30 31 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 … … 34 35 #include <pthread.h> 35 36 #include <dt_list.h> 37 #else /* VBOX */ 38 # include <dtrace.h> 39 # include <dt_list.h> 40 # include <iprt/critsect.h> 41 #endif /* VBOX */ 42 36 43 37 44 #ifdef __cplusplus … … 45 52 struct ps_prochandle *dpr_proc; /* proc handle for libproc calls */ 46 53 char dpr_errmsg[BUFSIZ]; /* error message */ 54 #ifndef VBOX 47 55 rd_agent_t *dpr_rtld; /* rtld handle for librtld_db calls */ 48 56 pthread_mutex_t dpr_lock; /* lock for manipulating dpr_hdl */ 49 57 pthread_cond_t dpr_cv; /* cond for dpr_stop/quit/done */ 58 #else 59 RTCRITSECT dpr_lock; 60 RTSEMEVENT dpr_cv; 61 #endif 50 62 pid_t dpr_pid; /* pid of process */ 51 63 uint_t dpr_refs; /* reference count */ … … 57 69 uint8_t dpr_stale; /* proc flag: been deprecated */ 58 70 uint8_t dpr_rdonly; /* proc flag: opened read-only */ 71 #ifndef VBOX 59 72 pthread_t dpr_tid; /* control thread (or zero if none) */ 73 #else 74 RTTHREAD dpr_tid; 75 #endif 60 76 dt_list_t dpr_bps; /* list of dt_bkpt_t structures */ 61 77 } dt_proc_t; … … 87 103 88 104 typedef struct dt_proc_hash { 105 #ifndef VBOX 89 106 pthread_mutex_t dph_lock; /* lock protecting dph_notify list */ 90 107 pthread_cond_t dph_cv; /* cond for waiting for dph_notify */ 108 #else 109 RTSEMEVENT dph_event; 110 #endif 91 111 dt_proc_notify_t *dph_notify; /* list of pending proc notifications */ 92 112 dt_list_t dph_lrulist; /* list of dt_proc_t's in lru order */
Note:
See TracChangeset
for help on using the changeset viewer.