Changeset 1944 in Sophya
- Timestamp:
- Mar 24, 2002, 12:05:22 AM (24 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 11 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/toisegment.cc
r1804 r1944 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: toisegment.cc,v 1.2 5 2001-11-30 21:07:16aubourg Exp $5 // $Id: toisegment.cc,v 1.26 2002-03-23 23:05:22 aubourg Exp $ 6 6 7 7 #include "toisegment.h" … … 158 158 TOISegmented::BufferSegment::~BufferSegment() { 159 159 if (refcount > 0) { 160 cerr << "TOISegment : delete Buffer with refcount>0" << endl; 160 161 throw(ForbiddenError("TOISegment : delete Buffer with refcount>0")); 161 162 } … … 183 184 } 184 185 if (status == COMMITTED) { 186 cerr << "TOISegment : putData in committed buffer" << endl; 185 187 throw(ForbiddenError("TOISegment : putData in committed buffer")); 186 188 } … … 196 198 } 197 199 if (status == COMMITTED) { 200 cerr << "TOISegment : putData in committed buffer" << endl; 198 201 throw(ForbiddenError("TOISegment : putData in committed buffer")); 199 202 } … … 218 221 int nrc = --refcount; 219 222 pthread_mutex_unlock(&refcount_mutex); 220 if (nrc<0) 223 if (nrc<0) { 224 cerr << "TOISegment : buffer refcount < 0" << endl; 221 225 throw(ForbiddenError("TOISegment : buffer refcount < 0")); 226 } 222 227 } 223 228 -
trunk/ArchTOIPipe/Kernel/toisegment.h
r1787 r1944 5 5 // Christophe Magneville 6 6 // Reza Ansari 7 // $Id: toisegment.h,v 1.1 7 2001-11-26 15:13:48aubourg Exp $7 // $Id: toisegment.h,v 1.18 2002-03-23 23:05:22 aubourg Exp $ 8 8 9 9 #ifndef TOISEGMENT_H … … 82 82 83 83 bool isPastEnd(int sn) { 84 return sn >= sn +bufferSize;84 return sn >= sn0+bufferSize; 85 85 } 86 86 87 87 private: 88 88 void checkCommitted() { 89 if (status != COMMITTED) 89 if (status != COMMITTED) { 90 cerr << "TOISegment: Read on not committed buffer segment" << endl; 90 91 throw(ForbiddenError("TOISegment: Read on not committed buffer segment")); 92 } 91 93 } 92 94 93 95 void checkInRange(int sn) { 94 if (sn < sn0 || sn >= sn+bufferSize) 96 if (sn < sn0 || sn >= sn0+bufferSize) { 97 cerr << "TOISegment: out of range access in buffer segment " << sn << " not in " 98 << sn0 << " - " << sn0+bufferSize << endl; 95 99 throw(RangeCheckError("TOISegment: out of range access in buffer segment")); 100 } 96 101 } 97 102 -
trunk/ArchTOIPipe/ProcWSophya/noisegen.cc
r1860 r1944 38 38 int sne = getMaxOut(); 39 39 40 cout << " NoiseGen::run() SNRange=" << snb << " - " << sne << endl;41 42 40 for (int i=snb; i<=sne; i++) { 43 41 putData(0,i,gen->Noise(),0); -
trunk/ArchTOIPipe/Processors/Makefile.in
r1793 r1944 47 47 endif 48 48 49 SRCFILES=toisqfilter.cc nooppr.cc 50 49 SRCFILES=toisqfilter.cc nooppr.cc correl.cc nrutil.c dlubksb.c dludcmp.c dtoeplz.c \ 50 wienerdecor.cc 51 51 FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o)) 52 52 -
trunk/ArchTOIPipe/configure.in
r1803 r1944 123 123 AC_CHECK_HEADERS(values.h stdint.h) 124 124 125 outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile "125 outfiles="Makefile kernel/Makefile processors/Makefile pipes/Makefile Makefile.h" 126 126 if [[ $use_sophya = 1 ]]; then 127 127 outfiles="$outfiles sophya/Makefile" -
trunk/ArchTOIPipe/files_pipes
r1860 r1944 17 17 tsttoi2map.cc 18 18 tstktoibad.cc 19 tstnoisecancel.h 20 tstnoisecancel.cc -
trunk/ArchTOIPipe/files_processors
r1701 r1944 3 3 nooppr.h 4 4 nooppr.cc 5 correl.cc 6 correl.h 7 nrutil.h 8 nrutil.c 9 dlubksb.c 10 dludcmp.c 11 dtoeplz.c 12 wienerdecor.cc 13 wienerdecor.h
Note:
See TracChangeset
for help on using the changeset viewer.