Skip to content

Commit 55d98fc

Browse files
committed
for bug #251, add min msgs for queue cond wait.
1 parent 438ee30 commit 55d98fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

trunk/src/core/srs_core_performance.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,18 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
139139
* @see https://github.com/winlinvip/simple-rtmp-server/issues/251
140140
*/
141141
#undef SRS_PERF_QUEUE_FAST_VECTOR
142+
#if defined(SRS_PERF_QUEUE_FAST_CACHE) && defined(SRS_PERF_QUEUE_FAST_VECTOR)
143+
#error "fast cache conflict with fast vector"
144+
#endif
142145
/**
143146
* whether use cond wait to send messages.
144147
* @remark this improve performance for large connectios.
145148
* @see https://github.com/winlinvip/simple-rtmp-server/issues/251
146149
*/
147150
#undef SRS_PERF_QUEUE_COND_WAIT
151+
#ifdef SRS_PERF_QUEUE_COND_WAIT
152+
#define SRS_PERF_MW_MIN_MSGS 8
153+
#endif
148154

149155
/**
150156
* how many chunk stream to cache, [0, N].

0 commit comments

Comments
 (0)