@param rep The repository the set should belong/belongs to * @param lockBeforeAccess If this is nonzero, the given mutex will be locked before each modification to the repository. * @param basicSet If this is explicitly given, the given set will be used as base. However it will not be changed. * * @warning Watch for deadlocks, never use this class while the mutex given throug
| 405 | * @warning Watch for deadlocks, never use this class while the mutex given through lockBeforeAccess is locked |
| 406 | */ |
| 407 | explicit LazySet(BasicSetRepository* rep, QMutex* lockBeforeAccess = nullptr, const Set& basicSet = Set()) : m_rep( |
| 408 | rep) |
| 409 | , m_set(basicSet) |
| 410 | , m_lockBeforeAccess(lockBeforeAccess) |
| 411 | { |
| 412 | } |
| 413 | |
| 414 | void insert(const T& t) |
| 415 | { |