Skip to content

Commit

Permalink
Merge pull request #27 from Telmate/PS-2221-FIX
Browse files Browse the repository at this point in the history
reduce destructor timeouts
  • Loading branch information
avis authored Jul 26, 2018
2 parents 2eb4ad1 + ca4b263 commit 27ecc94
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ TelmateFrameGrabberOpenCVImpl::TelmateFrameGrabberOpenCVImpl ()

this->uuid = "UUID_UNINITIALIZED";
this->thrLoop = true;
this->monThreadLoop = true;
this->monThreadLoop = false;
this->snapInterval = 1000;
this->epName = "EP_NAME_UNINITIALIZED";
this->storagePath = "/tmp/";
Expand Down Expand Up @@ -55,7 +55,9 @@ TelmateFrameGrabberOpenCVImpl::~TelmateFrameGrabberOpenCVImpl() {

VideoFrame *ptrVf;
this->thrLoop = false;
boost::this_thread::sleep_for(boost::chrono::milliseconds(250));
this->monThreadLoop = false;

boost::this_thread::sleep_for(boost::chrono::milliseconds(50));


while(this->queueLength > 0) {
Expand All @@ -70,7 +72,6 @@ TelmateFrameGrabberOpenCVImpl::~TelmateFrameGrabberOpenCVImpl() {
delete this->frameQueue;
this->frameQueue = NULL;

this->monThreadLoop = false;

GST_INFO("Destructor was called for %s", this->epName.c_str());

Expand Down

0 comments on commit 27ecc94

Please sign in to comment.