| 287 | } |
| 288 | |
| 289 | bool Context::flushRenderRequests() { |
| 290 | bool didFlush = false; |
| 291 | std::unique_lock<Mutex> guard(_mutex); |
| 292 | while (!_pendingRenderRequests.empty()) { |
| 293 | runNextPendingRenderRequest(guard); |
| 294 | guard.lock(); |
| 295 | didFlush = true; |
| 296 | } |
| 297 | |
| 298 | return didFlush; |
| 299 | } |
| 300 | |
| 301 | bool Context::hasPendingRenderRequests() const { |
| 302 | std::lock_guard<Mutex> guard(_mutex); |
no test coverage detected