Changeset 1710 in Sophya for trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
- Timestamp:
- Oct 19, 2001, 2:20:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
r1696 r1710 128 128 << firstSn << endl; 129 129 130 fits_lock();131 130 for (int i=0; i<nrows; i++) { 132 131 int anyNul; 133 132 double y; 133 fits_lock(); 134 134 fits_read_col_dbl(fptr,1,i+1,1,1,0,&y,&anyNul,&fstatus); 135 //fits_unlock();135 fits_unlock(); 136 136 int sn = (int) (y+.1); 137 137 TOIManager* mgr = TOIManager::getManager(); … … 142 142 int j = colsinput[k].first; 143 143 if ( !checkOutputTOIIndex(k) ) continue; // Reza - Si TOI non connecte 144 //fits_lock();144 fits_lock(); 145 145 fits_read_col_dbl(fptr,j+1,i+1,1,1,0,&y,&anyNul,&fstatus); 146 146 long flg = 0; … … 148 148 fits_read_col_lng(fptr,j+2,i+1,1,1,0,&flg,&anyNul,&fstatus); 149 149 } 150 //fits_unlock();150 fits_unlock(); 151 151 putData(k, sn, y, flg); 152 152 } 153 if (i%50==0) {153 /* if (i%50==0) { 154 154 fits_unlock(); 155 155 sched_yield(); 156 156 fits_lock(); 157 } 157 }*/ 158 158 totnscount++; 159 159 } 160 fits_unlock();160 //fits_unlock(); 161 161 cout << "reader done reading... " << pthread_self() << endl; 162 162 }
Note:
See TracChangeset
for help on using the changeset viewer.