Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
71579632
Commit
71579632
authored
Jun 02, 2012
by
Max-Wilhelm Bruker
Browse files
removed usleep() call to enable compilation on Windows again
parent
60f99818
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server.cpp
View file @
71579632
...
...
@@ -64,8 +64,15 @@ void Server::prepareDestroy()
clientsLock
.
unlock
();
bool
done
=
false
;
class
SleeperThread
:
public
QThread
{
public:
static
void
msleep
(
unsigned
long
msecs
)
{
QThread
::
usleep
(
msecs
);
}
};
do
{
u
sleep
(
10
000
);
SleeperThread
::
m
sleep
(
10
);
clientsLock
.
lockForRead
();
if
(
clients
.
isEmpty
())
done
=
true
;
...
...
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