22 TlmEntry* entryToUse = 0;
23 TlmEntry* prevEntry = 0;
26 if (this->m_tlmEntries[this->m_activeBuffer].slots[index]) {
27 entryToUse = this->m_tlmEntries[this->m_activeBuffer].slots[index];
30 if (entryToUse->id ==
id) {
33 prevEntry = entryToUse;
34 entryToUse = entryToUse->next;
38 FW_ASSERT(this->m_tlmEntries[this->m_activeBuffer].free < TLMCHAN_HASH_BUCKETS);
40 entryToUse = &this->m_tlmEntries[this->m_activeBuffer].buckets[this->m_tlmEntries[this->m_activeBuffer].free++];
42 prevEntry->next = entryToUse;
50 FW_ASSERT(this->m_tlmEntries[this->m_activeBuffer].free < TLMCHAN_HASH_BUCKETS);
52 this->m_tlmEntries[this->m_activeBuffer].slots[index] = &this->m_tlmEntries[this->m_activeBuffer].buckets[this->m_tlmEntries[this->m_activeBuffer].free++];
53 entryToUse = this->m_tlmEntries[this->m_activeBuffer].slots[index];
59 entryToUse->used =
true;
61 entryToUse->updated =
true;
62 entryToUse->lastUpdate = timeTag;
63 entryToUse->buffer = val;