| 1715 | } |
| 1716 | |
| 1717 | static void finalCleanup() |
| 1718 | { |
| 1719 | DUChainWriteLocker writeLock(DUChain::lock()); |
| 1720 | qCDebug(LANGUAGE) << "doing final cleanup"; |
| 1721 | |
| 1722 | int cleaned = 0; |
| 1723 | while ((cleaned = globalItemRepositoryRegistry().finalCleanup())) { |
| 1724 | qCDebug(LANGUAGE) << "cleaned" << cleaned << "B"; |
| 1725 | if (cleaned < 1000) { |
| 1726 | qCDebug(LANGUAGE) << "cleaned enough"; |
| 1727 | break; |
| 1728 | } |
| 1729 | } |
| 1730 | qCDebug(LANGUAGE) << "final cleanup ready"; |
| 1731 | } |
| 1732 | |
| 1733 | void DUChain::shutdown() |
| 1734 | { |