summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp')
-rw-r--r--tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp
index 7654d0e74b..cf27c23591 100644
--- a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp
+++ b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp
@@ -57,7 +57,7 @@ public:
ThreadOne() {}
protected:
- void run()
+ void run() override
{
int i = 0;
while ( i < 100 ) {
@@ -76,7 +76,7 @@ public:
ThreadN(int n) :N(n) { }
protected:
- void run()
+ void run() override
{
int i = 0;
while ( i < 100 ) {
@@ -400,7 +400,7 @@ void tst_QSemaphore::tryAcquireWithTimeoutStarvation()
QSemaphore *semaphore;
int amountToConsume, timeout;
- void run()
+ void run() override
{
startup.release();
forever {
@@ -497,7 +497,7 @@ QSemaphore usedSpace;
class Producer : public QThread
{
public:
- void run();
+ void run() override;
};
static const int Timeout = 60 * 1000; // 1min
@@ -521,7 +521,7 @@ void Producer::run()
class Consumer : public QThread
{
public:
- void run();
+ void run() override;
};
void Consumer::run()