From 55d98fceeda635aaa3af99347822fc65efaa66c9 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 7 Dec 2014 16:15:19 +0800 Subject: [PATCH] for bug #251, add min msgs for queue cond wait. --- trunk/src/core/srs_core_performance.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trunk/src/core/srs_core_performance.hpp b/trunk/src/core/srs_core_performance.hpp index e37e0cee0..4757c66e8 100644 --- a/trunk/src/core/srs_core_performance.hpp +++ b/trunk/src/core/srs_core_performance.hpp @@ -139,12 +139,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * @see https://github.com/winlinvip/simple-rtmp-server/issues/251 */ #undef SRS_PERF_QUEUE_FAST_VECTOR +#if defined(SRS_PERF_QUEUE_FAST_CACHE) && defined(SRS_PERF_QUEUE_FAST_VECTOR) + #error "fast cache conflict with fast vector" +#endif /** * whether use cond wait to send messages. * @remark this improve performance for large connectios. * @see https://github.com/winlinvip/simple-rtmp-server/issues/251 */ #undef SRS_PERF_QUEUE_COND_WAIT +#ifdef SRS_PERF_QUEUE_COND_WAIT + #define SRS_PERF_MW_MIN_MSGS 8 +#endif /** * how many chunk stream to cache, [0, N].