summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-03-04 15:31:13 +0000
committerBenny Prijono <bennylp@teluu.com>2008-03-04 15:31:13 +0000
commit93f91b36381a56608b372cc5bc99b17fe8d6174d (patch)
treed2285860da37886f3606b07ede41bbad932760bd /pjmedia/include
parentf20e3435d9ce6fbbc7ca3194eda369e77531819c (diff)
Ticket #501: Set master port worker thread priority to highest by default
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1843 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/clock.h14
-rw-r--r--pjmedia/include/pjmedia/master_port.h3
2 files changed, 9 insertions, 8 deletions
diff --git a/pjmedia/include/pjmedia/clock.h b/pjmedia/include/pjmedia/clock.h
index 06fe4cd6..12daa837 100644
--- a/pjmedia/include/pjmedia/clock.h
+++ b/pjmedia/include/pjmedia/clock.h
@@ -62,7 +62,12 @@ enum pjmedia_clock_options
* application must poll the clock continuously by calling
* #pjmedia_clock_wait() in order to synchronize timing.
*/
- PJMEDIA_CLOCK_NO_ASYNC = 1
+ PJMEDIA_CLOCK_NO_ASYNC = 1,
+
+ /**
+ * Prevent the clock from setting it's thread to highest priority.
+ */
+ PJMEDIA_CLOCK_NO_HIGHEST_PRIO = 2
};
@@ -86,12 +91,7 @@ typedef void pjmedia_clock_callback(const pj_timestamp *ts,
* @param samples_per_frame Number of samples per frame. This argument
* along with clock_rate, specifies the interval
* of each clock run (or clock ticks).
- * @param options By default, the callback will be called
- * asynchronously (depending on the clock
- * implementation backend, a thread may be
- * created). If PJMEDIA_CLOCK_NO_ASYNC is set,
- * application must poll the clock with
- * #pjmedia_clock_wait() to let the clock runs.
+ * @param options Bitmask of pjmedia_clock_options.
* @param cb Callback to be called for each clock tick.
* @param user_data User data, which will be passed to the callback.
* @param p_clock Pointer to receive the clock instance.
diff --git a/pjmedia/include/pjmedia/master_port.h b/pjmedia/include/pjmedia/master_port.h
index 33216b86..242949d9 100644
--- a/pjmedia/include/pjmedia/master_port.h
+++ b/pjmedia/include/pjmedia/master_port.h
@@ -70,7 +70,8 @@ typedef struct pjmedia_master_port pjmedia_master_port;
* @param pool Pool to allocate master port from.
* @param u_port Upstream port.
* @param d_port Downstream port.
- * @param options Options flags, must be zero for now.
+ * @param options Options flags, from bitmask combinations from
+ * pjmedia_clock_options.
* @param p_m Pointer to receive the master port instance.
*
* @return PJ_SUCCESS on success.