make t crash

This commit is contained in:
Dhanya Maliakal
2016-11-01 15:02:14 +01:00
parent 7fc82723b5
commit 1f3a418d93
3 changed files with 16 additions and 8 deletions

View File

@ -496,21 +496,24 @@ void* postProcessing::processData(int delflag) {
else{
int caught = -1;
while(true){
//cout.flush();
//cout<<flush;
cout.flush();
cout<<flush;
usleep(40000); //20ms need this else connecting error to receiver (too fast)
if (checkJoinThread()){
break;
}
/*
//get progress
pthread_mutex_lock(&mg);
if(setReceiverOnline() == ONLINE_FLAG){
pthread_mutex_lock(&mg);
caught = getFramesCaughtByReceiver();
pthread_mutex_unlock(&mg);
}
pthread_mutex_unlock(&mg);
//updating progress
if(caught!= -1){
setCurrentProgress(caught);
@ -521,7 +524,7 @@ void* postProcessing::processData(int delflag) {
if (checkJoinThread()){
break;
}
*/
}