| 1693 | } |
| 1694 | |
| 1695 | bool VisualizerImpl::postWork(WorkItem work) { |
| 1696 | { |
| 1697 | std::lock_guard lock(work_queue_mutex_); |
| 1698 | if (!accepting_work_) |
| 1699 | return false; |
| 1700 | work_queue_.push_back(std::move(work)); |
| 1701 | } |
| 1702 | |
| 1703 | wakeMainLoop(); |
| 1704 | |
| 1705 | return true; |
| 1706 | } |
| 1707 | |
| 1708 | bool VisualizerImpl::postRenderWork(WorkItem work) { |
| 1709 | { |
no test coverage detected