backends/drm: wait for the pageflip to be done with the condition variable
...instead of busy looping, which is causing several percent CPU usage in some cases BUG: 479126
This commit is contained in:
parent
56fc8f83ac
commit
d4a3d6689e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ DrmCommitThread::DrmCommitThread(const QString &name)
|
|||
return;
|
||||
}
|
||||
std::unique_lock lock(m_mutex);
|
||||
if (m_commits.empty()) {
|
||||
if (m_commits.empty() || m_committed) {
|
||||
m_commitPending.wait(lock);
|
||||
}
|
||||
if (m_committed) {
|
||||
|
|
Loading…
Reference in a new issue