Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konversation
Commits
bfc78404
Commit
bfc78404
authored
Feb 10, 2022
by
Albert Astals Cid
Browse files
Don't use a QWaitCondition to do a dummy sleep
parent
9b35bb68
Pipeline
#138338
passed with stage
in 4 minutes and 1 second
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
bfc78404
...
...
@@ -8,8 +8,6 @@
#include
"application.h"
#include
"version.h"
#include
<QMutex>
#include
<QWaitCondition>
#include
<QCommandLineParser>
#include
<KAboutData>
...
...
@@ -17,6 +15,8 @@
#include
<Kdelibs4ConfigMigrator>
#include
<KDBusService>
#include
<chrono>
#include
<thread>
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -121,10 +121,7 @@ int main(int argc, char* argv[])
if
(
ok
)
{
QMutex
dummy
;
dummy
.
lock
();
QWaitCondition
waitCondition
;
waitCondition
.
wait
(
&
dummy
,
delay
);
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
milliseconds
(
delay
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment