QImage *QBlittable::lock() { Q_D(QBlittable); if (!d->locked) { d->cachedImg = doLock(); d->locked = true; } return d->cachedImg; }
int File::getLock() { return doLock(m_hdl, true); }
int File::unlock() { return doLock(m_hdl, F_SETLK, F_UNLCK); }
int File::tryLock() { return doLock(m_hdl, F_SETLK, F_WRLCK); }
int File::getLock() { return doLock(m_hdl, F_SETLKW, F_WRLCK); }
int File::tryLock() { return doLock(m_hdl, false); }