提交 6f3743e1 编写于 作者: H Hongze Cheng

more TDB

上级 737497d8
......@@ -31,7 +31,7 @@ typedef struct __attribute__((__packed__)) {
struct SPage {
pthread_spinlock_t lock;
void *pData;
u8 *pData;
SPgid pgid;
// Fields used by SPCache
......@@ -49,6 +49,10 @@ struct SPage {
int aiOvfl[4];
};
// Macros
#define TDB_PAGE_CELL_IDX_AT(pPage, idx) ((pPage)->aCellIdx[idx])
#define TDB_PAGE_CELL_AT(pPage, idx) ((pPage)->pData + TDB_PAGE_CELL_IDX_AT(pPage, idx))
// For page lock
#define P_LOCK_SUCC 0
#define P_LOCK_BUSY 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册