⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c_block.cpp

📁 HP共享内存实现,只要将sql语句配置好,装载共享内存即可
💻 CPP
字号:
/***********************************************************************
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -