mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-11 02:16:44 -04:00
add notify_all functions
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user