Skip to content

Commit

Permalink
Merge pull request #4589 from daschuer/sleep
Browse files Browse the repository at this point in the history
Dispose sleep() workarounds for QT4
  • Loading branch information
uklotzde authored Dec 29, 2021
2 parents e3062a1 + 99e8ca0 commit 1daa7c6
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 44 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,6 @@ add_library(mixxx-lib STATIC EXCLUDE_FROM_ALL
src/util/semanticversion.cpp
src/util/screensaver.cpp
src/util/screensavermanager.cpp
src/util/sleepableqthread.cpp
src/util/stat.cpp
src/util/statmodel.cpp
src/util/statsmanager.cpp
Expand Down
1 change: 0 additions & 1 deletion src/mixer/playermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "util/compatibility/qatomic.h"
#include "util/defs.h"
#include "util/logger.h"
#include "util/sleepableqthread.h"

namespace {

Expand Down
4 changes: 2 additions & 2 deletions src/soundio/soundmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <portaudio.h>

#include <QLibrary>
#include <QThread>
#include <QtDebug>
#include <cstring> // for memcpy and strcmp

Expand All @@ -22,7 +23,6 @@
#include "util/compatibility/qatomic.h"
#include "util/defs.h"
#include "util/sample.h"
#include "util/sleep.h"
#include "util/versionstore.h"
#include "vinylcontrol/defs_vinylcontrol.h"

Expand Down Expand Up @@ -165,7 +165,7 @@ void SoundManager::closeDevices(bool sleepAfterClosing) {
#ifdef __LINUX__
// Sleep for 5 sec to allow asynchronously sound APIs like "pulse" to free
// its resources as well
sleep(kSleepSecondsAfterClosingDevice);
QThread::sleep(kSleepSecondsAfterClosingDevice);
#endif
}

Expand Down
9 changes: 0 additions & 9 deletions src/util/sleep.h

This file was deleted.

6 changes: 0 additions & 6 deletions src/util/sleepableqthread.cpp

This file was deleted.

25 changes: 0 additions & 25 deletions src/util/sleepableqthread.h

This file was deleted.

0 comments on commit 1daa7c6

Please sign in to comment.