some changes

This commit is contained in:
Dhanya Maliakal
2016-11-01 14:04:31 +01:00
parent 7374a37115
commit 7fc82723b5
3 changed files with 58 additions and 30 deletions

View File

@ -395,7 +395,9 @@ int postProcessing::fillBadChannelMask() {
void* postProcessing::processData(int delflag) {
pthread_mutex_lock(&mg);
if(setReceiverOnline()==OFFLINE_FLAG){
pthread_mutex_unlock(&mg);
#ifdef VERBOSE
std::cout<< " ??????????????????????????????????????????? processing data - threaded mode " << *threadedProcessing << endl;
@ -482,6 +484,7 @@ void* postProcessing::processData(int delflag) {
}
//receiver
else{
pthread_mutex_unlock(&mg);
//cprintf(RED,"In post processing threads\n");
@ -493,9 +496,9 @@ void* postProcessing::processData(int delflag) {
else{
int caught = -1;
while(true){
cout.flush();
cout<<flush;
usleep(20000); //20ms need this else connecting error to receiver (too fast)
//cout.flush();
//cout<<flush;
usleep(40000); //20ms need this else connecting error to receiver (too fast)
if (checkJoinThread()){
break;