| 136 | } |
| 137 | |
| 138 | bool KDevelop::ForegroundLock::isLockedForThread() |
| 139 | { |
| 140 | return QThread::currentThread() == holderThread |
| 141 | || QThread::currentThread() == QCoreApplication::instance()->thread(); |
| 142 | } |
| 143 | |
| 144 | bool KDevelop::ForegroundLock::tryLock() |
| 145 | { |