| 175 | } |
| 176 | |
| 177 | int av_thread_message_queue_recv(AVThreadMessageQueue *mq, |
| 178 | void *msg, |
| 179 | unsigned flags) |
| 180 | { |
| 181 | #if HAVE_THREADS |
| 182 | int ret; |
| 183 | |
| 184 | pthread_mutex_lock(&mq->lock); |
| 185 | ret = av_thread_message_queue_recv_locked(mq, msg, flags); |
| 186 | pthread_mutex_unlock(&mq->lock); |
| 187 | return ret; |
| 188 | #else |
| 189 | return AVERROR(ENOSYS); |
| 190 | #endif /* HAVE_THREADS */ |
| 191 | } |
| 192 | |
| 193 | void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq, |
| 194 | int err) |