26 QAtomicInteger<quint64> connectionMask;
27 QQmlNotifierEndpoint *todo =
nullptr;
28 QQmlNotifierEndpoint **notifies =
nullptr;
29 quint16 maximumTodoIndex = 0;
30 quint16 notifiesSize = 0;
35 void layout(QQmlNotifierEndpoint *endpoint);
64inline void QQmlNotifyList::layout()
66 Q_ASSERT(maximumTodoIndex >= notifiesSize);
69 QQmlNotifierEndpoint **old = notifies;
70 const int reallocSize = (maximumTodoIndex + 1) *
sizeof(QQmlNotifierEndpoint *);
71 notifies = (QQmlNotifierEndpoint **)realloc(notifies, reallocSize);
72 const int memsetSize = (maximumTodoIndex - notifiesSize + 1) *
73 sizeof(QQmlNotifierEndpoint *);
74 memset(notifies + notifiesSize, 0, memsetSize);
76 if (notifies != old) {
77 for (
int ii = 0; ii < notifiesSize; ++ii)
79 notifies[ii]->prev = ¬ifies[ii];
82 notifiesSize = maximumTodoIndex + 1;