removed usleep() call to enable compilation on Windows again
This commit is contained in:
parent
60f99818e1
commit
7157963204
1 changed files with 8 additions and 1 deletions
|
@ -64,8 +64,15 @@ void Server::prepareDestroy()
|
||||||
clientsLock.unlock();
|
clientsLock.unlock();
|
||||||
|
|
||||||
bool done = false;
|
bool done = false;
|
||||||
|
|
||||||
|
class SleeperThread : public QThread
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
static void msleep(unsigned long msecs) { QThread::usleep(msecs); }
|
||||||
|
};
|
||||||
|
|
||||||
do {
|
do {
|
||||||
usleep(10000);
|
SleeperThread::msleep(10);
|
||||||
clientsLock.lockForRead();
|
clientsLock.lockForRead();
|
||||||
if (clients.isEmpty())
|
if (clients.isEmpty())
|
||||||
done = true;
|
done = true;
|
||||||
|
|
Loading…
Reference in a new issue