MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / join_next

Method join_next

dds/DCPS/MemoryPool.cpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void
82AllocHeader::join_next() {
83 // All unsigned, set_size will make negative if free (it is)
84 size_t next_size = this->next_adjacent()->size();
85 size_t joined_size = this->size() + next_size + sizeof(AllocHeader);
86 this->set_size(joined_size);
87}
88
89void
90FreeHeader::init_free_block(unsigned int pool_size)

Callers 1

join_free_allocsMethod · 0.80

Calls 3

next_adjacentMethod · 0.95
set_sizeMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected