Changeset 3214
- Timestamp:
- Jun 21, 2010 9:10:44 AM (14 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/master_port.h
r2394 r3214 107 107 108 108 /** 109 * Poll the master port clock and execute the callback when the clock tick has 110 * elapsed. This operation is only valid if the master port is created with 111 * #PJMEDIA_CLOCK_NO_ASYNC flag. 112 * 113 * @param m The master port. 114 * @param wait If non-zero, then the function will block until 115 * a clock tick elapsed and callback has been called. 116 * @param ts Optional argument to receive the current 117 * timestamp. 118 * 119 * @return Non-zero if clock tick has elapsed, or FALSE if 120 * the function returns before a clock tick has 121 * elapsed. 122 */ 123 PJ_DECL(pj_bool_t) pjmedia_master_port_wait(pjmedia_master_port *m, 124 pj_bool_t wait, 125 pj_timestamp *ts); 126 127 128 /** 109 129 * Change the upstream port. Note that application is responsible to destroy 110 130 * current upstream port (the one that is going to be replaced with the -
pjproject/trunk/pjmedia/src/pjmedia/master_port.c
r2394 r3214 148 148 149 149 150 /* Poll the master port clock */ 151 PJ_DEF(pj_bool_t) pjmedia_master_port_wait( pjmedia_master_port *m, 152 pj_bool_t wait, 153 pj_timestamp *ts) 154 { 155 PJ_ASSERT_RETURN(m && m->clock, PJ_FALSE); 156 157 return pjmedia_clock_wait(m->clock, wait, ts); 158 } 159 150 160 /* 151 161 * Callback to be called for each clock ticks.
Note: See TracChangeset
for help on using the changeset viewer.