summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qmutex_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread/qmutex_p.h')
-rw-r--r--src/corelib/thread/qmutex_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/thread/qmutex_p.h b/src/corelib/thread/qmutex_p.h
index 2d45cfb..6de42ad 100644
--- a/src/corelib/thread/qmutex_p.h
+++ b/src/corelib/thread/qmutex_p.h
@@ -72,7 +72,9 @@ public:
bool wait(int timeout = -1);
void wakeUp();
- volatile int lastSpinCount;
+ // half of a frame (in ms) at 60fps
+ enum { MaximumSpinTimeThreshold = 8 };
+ volatile int maximumSpinTime;
Qt::HANDLE owner;
uint count;