add notify_all functions

pull/3609/head
Isaac Connor 2022-08-02 20:43:20 -04:00
parent 72676dd706
commit d568d0633a
1 changed files with 7 additions and 0 deletions

View File

@ -79,6 +79,9 @@ class ZMPacket {
//AVFrame *get_out_frame(const AVCodecContext *ctx); //AVFrame *get_out_frame(const AVCodecContext *ctx);
AVFrame *get_out_frame(int width, int height, AVPixelFormat format); AVFrame *get_out_frame(int width, int height, AVPixelFormat format);
int get_codec_imgsize() { return codec_imgsize; }; int get_codec_imgsize() { return codec_imgsize; };
void notify_all() {
this->condition_.notify_all();
}
}; };
class ZMLockedPacket { class ZMLockedPacket {
@ -120,6 +123,10 @@ class ZMLockedPacket {
Debug(4, "packet %d waiting", packet_->image_index); Debug(4, "packet %d waiting", packet_->image_index);
packet_->condition_.wait(lck_); packet_->condition_.wait(lck_);
} }
void notify_all() {
packet_->notify_all();
}
}; };
#endif /* ZM_PACKET_H */ #endif /* ZM_PACKET_H */