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