mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the export project bug. wakeup connection when dispose server.
This commit is contained in:
parent
969ed7b0ae
commit
1f1776a0d8
5 changed files with 65 additions and 17 deletions
|
@ -423,6 +423,14 @@ void SrsMessageQueue::clear()
|
|||
av_start_time = av_end_time = -1;
|
||||
}
|
||||
|
||||
ISrsWakable::ISrsWakable()
|
||||
{
|
||||
}
|
||||
|
||||
ISrsWakable::~ISrsWakable()
|
||||
{
|
||||
}
|
||||
|
||||
SrsConsumer::SrsConsumer(SrsSource* _source)
|
||||
{
|
||||
source = _source;
|
||||
|
@ -551,14 +559,6 @@ void SrsConsumer::wait(int nb_msgs, int duration)
|
|||
// use cond block wait for high performance mode.
|
||||
st_cond_wait(mw_wait);
|
||||
}
|
||||
|
||||
void SrsConsumer::wakeup()
|
||||
{
|
||||
if (mw_waiting) {
|
||||
st_cond_signal(mw_wait);
|
||||
mw_waiting = false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
int SrsConsumer::on_play_client_pause(bool is_pause)
|
||||
|
@ -571,6 +571,16 @@ int SrsConsumer::on_play_client_pause(bool is_pause)
|
|||
return ret;
|
||||
}
|
||||
|
||||
void SrsConsumer::wakeup()
|
||||
{
|
||||
#ifdef SRS_PERF_QUEUE_COND_WAIT
|
||||
if (mw_waiting) {
|
||||
st_cond_signal(mw_wait);
|
||||
mw_waiting = false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
SrsGopCache::SrsGopCache()
|
||||
{
|
||||
cached_video_count = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue