void volume_information_class::popBlock() { (*free_block)--; ushort* temp = (ushort *) &handler[BLOCK_SIZE+frontBlock()*2]; *ptr_free_block = *temp; *temp = INVALID_BLOCK; }
void volume_information_class::pushBlock(ushort idx) { (*free_block)++; ushort* temp = (ushort *) &handler[BLOCK_SIZE+idx*2]; *temp = frontBlock(); *ptr_free_block = idx; }
bool frontBlock(T& t, boost::uint32_t timeout) const { return frontBlock(t, duration_type(timeout)); }