| 1330 | } |
| 1331 | |
| 1332 | void |
| 1333 | Node::Implementation::abortPreview_blocking(bool allowPreviewRenders) |
| 1334 | { |
| 1335 | bool computing; |
| 1336 | { |
| 1337 | QMutexLocker locker(&computingPreviewMutex); |
| 1338 | computing = computingPreview; |
| 1339 | previewThreadQuit = !allowPreviewRenders; |
| 1340 | } |
| 1341 | |
| 1342 | if (computing) { |
| 1343 | QMutexLocker l(&mustQuitPreviewMutex); |
| 1344 | assert(!mustQuitPreview); |
| 1345 | ++mustQuitPreview; |
| 1346 | while (mustQuitPreview) { |
| 1347 | mustQuitPreviewCond.wait(l.mutex()); |
| 1348 | } |
| 1349 | } |
| 1350 | } |
| 1351 | |
| 1352 | bool |
| 1353 | Node::Implementation::checkForExitPreview() |
no outgoing calls
no test coverage detected