------------------------------------------------------------------------------
| 348 | |
| 349 | //------------------------------------------------------------------------------ |
| 350 | void vtkParallelTimerBuffer::Resize(size_t newSize) |
| 351 | { |
| 352 | #if defined(vtkParallelTimerBufferDEBUG) |
| 353 | size_t oldSize = this->Size; |
| 354 | #endif |
| 355 | if (newSize <= this->Size) |
| 356 | { |
| 357 | return; |
| 358 | } |
| 359 | while (this->Size < newSize) |
| 360 | { |
| 361 | this->Size += this->GrowBy; |
| 362 | } |
| 363 | this->Data = static_cast<char*>(realloc(this->Data, this->Size)); |
| 364 | #if defined(vtkParallelTimerBufferDEBUG) |
| 365 | memset(this->Data + oldSize, -1, this->Size - oldSize); |
| 366 | #endif |
| 367 | } |
| 368 | |
| 369 | //------------------------------------------------------------------------------ |
| 370 | vtkStandardNewMacro(vtkParallelTimer); |
no outgoing calls
no test coverage detected