| 73 | // |
| 74 | // |
| 75 | void Queue::loadData(Variant vData) |
| 76 | { |
| 77 | if (!m_fPersistent) |
| 78 | return; |
| 79 | |
| 80 | { |
| 81 | std::scoped_lock sync(m_mtxData); |
| 82 | for (auto& i : vData.get("items", Sequence())) |
| 83 | { |
| 84 | if (!tryToPut(i)) |
| 85 | { |
| 86 | LOGWRN("Some data wasn't loaded to the queue"); |
| 87 | break; |
| 88 | } |
| 89 | ++m_nDelayedNotifications; |
| 90 | } |
| 91 | } |
| 92 | notifyDelayedData(); |
| 93 | } |
| 94 | |
| 95 | // |
| 96 | // |
no test coverage detected