Changeset 1944 in Sophya for trunk/ArchTOIPipe/Kernel/toisegment.cc
- Timestamp:
- Mar 24, 2002, 12:05:22 AM (24 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.