Changeset 1696 in Sophya for trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
- Timestamp:
- Oct 15, 2001, 12:44:49 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
r1695 r1696 1 1 #include "fitstoirdr.h" 2 2 #include "toimanager.h" 3 3 #include <sched.h> 4 4 5 5 … … 128 128 << firstSn << endl; 129 129 130 fits_lock(); 130 131 for (int i=0; i<nrows; i++) { 131 132 int anyNul; 132 133 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(); 151 putData(k, sn, y, flg); 152 } 153 if (i%50==0) { 150 154 fits_unlock(); 151 putData(k, sn, y, flg); 155 sched_yield(); 156 fits_lock(); 152 157 } 153 158 totnscount++; 154 159 } 160 fits_unlock(); 155 161 cout << "reader done reading... " << pthread_self() << endl; 156 162 }
Note:
See TracChangeset
for help on using the changeset viewer.