Changeset 12408 for trunk/FACT++
- Timestamp:
- 11/05/11 21:31:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilder.c
r12372 r12408 225 225 currentChunk->events[mBufferMapping[evtIndex].slot] = -1; 226 226 currentChunk->nFreeSlots++; 227 //check if some chunks should be freed 228 int i; 229 for (i=0;i<numAllocatedChunks;i++) 230 { 231 if (EtiMemoryChunks[i].nFreeSlots == EtiMemoryChunks[i].nSlots) 232 { 233 snprintf(str, MXSTR, "Slot %d could be freed", i); 234 factOut(kError, 000, str); 235 } 236 } 227 237 228 int chunkIndex = mBufferMapping[evtIndex].chunk; 238 229 if (chunkIndex != numAllocatedChunks-1) … … 241 232 while (EtiMemoryChunks[chunkIndex].nFreeSlots == EtiMemoryChunks[chunkIndex].nSlots) 242 233 {//free this chunk 243 snprintf(str, MXSTR, "Freeing chunk #%d", numAllocatedChunks);244 factOut(kError, 000, str);245 234 free(EtiMemoryChunks[chunkIndex].pointers[0]); 246 235 numAllocatedChunks--;
Note:
See TracChangeset
for help on using the changeset viewer.