add notify_all functions
parent
72676dd706
commit
d568d0633a
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue