| 534 | } |
| 535 | |
| 536 | void CommandProcessor::BufferInit() |
| 537 | { |
| 538 | Core::LockGuard lock(m_mutex); |
| 539 | |
| 540 | if (m_current_buffer < 0) |
| 541 | { |
| 542 | for (auto& buf: m_buffer) |
| 543 | { |
| 544 | EXIT_IF(buf != nullptr); |
| 545 | |
| 546 | buf = new CommandBuffer(m_queue); |
| 547 | buf->SetParent(this); |
| 548 | // buf->SetQueue(m_queue); |
| 549 | } |
| 550 | |
| 551 | m_current_buffer = 0; |
| 552 | m_buffer[m_current_buffer]->Begin(); |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | void CommandProcessor::BufferFlush() |
| 557 | { |
no test coverage detected