add notify_all functions

This commit is contained in:
Isaac Connor
2022-08-02 20:43:20 -04:00
parent a03189046e
commit baf65819cb

View File

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