| 225 | } |
| 226 | |
| 227 | void tq_send_finish(ThreadQueue *tq, unsigned int stream_idx) |
| 228 | { |
| 229 | av_assert0(stream_idx < tq->nb_streams); |
| 230 | |
| 231 | pthread_mutex_lock(&tq->lock); |
| 232 | |
| 233 | /* mark the stream as send-finished; |
| 234 | * next time the consumer thread tries to read this stream it will get |
| 235 | * an EOF and recv-finished flag will be set */ |
| 236 | tq->finished[stream_idx] |= FINISHED_SEND; |
| 237 | tq->choked = 0; |
| 238 | pthread_cond_broadcast(&tq->cond); |
| 239 | |
| 240 | pthread_mutex_unlock(&tq->lock); |
| 241 | } |
| 242 | |
| 243 | void tq_receive_finish(ThreadQueue *tq, unsigned int stream_idx) |
| 244 | { |
no test coverage detected