| 506 | |
| 507 | private: |
| 508 | void apply() const |
| 509 | { |
| 510 | if (!m_temporaryIndices.empty()) { |
| 511 | QMutexLocker l(m_lockBeforeAccess); |
| 512 | Set tempSet = m_rep->createSet(m_temporaryIndices); |
| 513 | m_temporaryIndices.clear(); |
| 514 | m_set += tempSet; |
| 515 | } |
| 516 | if (!m_temporaryRemoveIndices.empty()) { |
| 517 | QMutexLocker l(m_lockBeforeAccess); |
| 518 | Set tempSet = m_rep->createSet(m_temporaryRemoveIndices); |
| 519 | m_temporaryRemoveIndices.clear(); |
| 520 | m_set -= tempSet; |
| 521 | } |
| 522 | } |
| 523 | BasicSetRepository* m_rep; |
| 524 | mutable Set m_set; |
| 525 | QMutex* m_lockBeforeAccess; |