| CMakeLists.txt |
|
611 |
- |
| qthreadonce.cpp |
!
\internal
Initialize the Q_ONCE structure.
Q_ONCE consists of two variables:
- a static POD QOnceControl::ControlVariable (it's a QBasicAtomicInt)
- an automatic QOnceControl that controls the former
The POD is initialized to 0.
When QOnceControl's constructor starts, it'll lock the global
initialization mutex. It'll then check if it's the first to up
the control variable and will take note.
The QOnceControl's destructor will unlock the global
initialization mutex.
|
1837 |
- |
| qthreadonce.h |
|
1562 |
- |
| tst_qthreadonce.cpp |
|
5409 |
- |