c_block.cpp
来自「HP共享内存实现,只要将sql语句配置好,装载共享内存即可」· C++ 代码 · 共 51 行
CPP
51 行
/***********************************************************************
* Module: c_block.cpp
* Author: Administrator
* Modified: 2005年9月14日 15:24:33
* Purpose: Implementation of the class c_block
* Comment: 内存片管理类. 在一个内存块中可以分多个内存片。每个内存片都对应一个更新锁。 这样有利于多个进程同时用于更新。块分类的依据, 有两种, 一种是按记录数。一种是位置。两种其实是一样的。
***********************************************************************/
#include "c_block.h"
////////////////////////////////////////////////////////////////////////
// Name: c_block::getBlockNum(int record_no)
// Purpose: Implementation of c_block::getBlockNum()
// Parameters:
// - record_no
// Return: int
////////////////////////////////////////////////////////////////////////
int c_block::getBlockNum(int record_no)
{
// TODO : implement
}
////////////////////////////////////////////////////////////////////////
// Name: c_block::getBlockNumByPos(int record_pos)
// Purpose: Implementation of c_block::getBlockNumByPos()
// Comment: 取得一个块号
// Parameters:
// - record_pos
// Return: int
////////////////////////////////////////////////////////////////////////
int c_block::getBlockNumByPos(int record_pos)
{
// TODO : implement
}
////////////////////////////////////////////////////////////////////////
// Name: c_block::getLockByPos(int record_pos)
// Purpose: Implementation of c_block::getLockByPos()
// Comment: 根据位置来获得锁
// Parameters:
// - record_pos
// Return: void*
////////////////////////////////////////////////////////////////////////
void* c_block::getLockByPos(int record_pos)
{
// TODO : implement
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?