refact
This commit is contained in:
parent
dcd59e570f
commit
c8ee7ba9a7
|
@ -52,6 +52,8 @@ struct SVnodeOptions {
|
||||||
// STqOptions tqOptions; // TODO
|
// STqOptions tqOptions; // TODO
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* ------------------------ FOR COMPILE ------------------------ */
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
|
|
||||||
#include "taosmsg.h"
|
#include "taosmsg.h"
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
#define _TD_VNODE_ALLOCATOR_POOL_H_
|
#define _TD_VNODE_ALLOCATOR_POOL_H_
|
||||||
|
|
||||||
#include "vnode.h"
|
#include "vnode.h"
|
||||||
#include "vnodeMemAllocator.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -26,7 +25,7 @@ extern "C" {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int nexta;
|
int nexta;
|
||||||
int enda;
|
int enda;
|
||||||
SVMemAllocator allocators[3];
|
SMemAllocator *allocators[3];
|
||||||
} SVAllocatorPool;
|
} SVAllocatorPool;
|
||||||
|
|
||||||
int vnodeOpenAllocatorPool(SVnode *pVnode);
|
int vnodeOpenAllocatorPool(SVnode *pVnode);
|
||||||
|
|
|
@ -20,9 +20,6 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
} SVMemAllocator;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
#ifndef _TD_VNODE_SYNC_H_
|
#ifndef _TD_VNODE_SYNC_H_
|
||||||
#define _TD_VNODE_SYNC_H_
|
#define _TD_VNODE_SYNC_H_
|
||||||
|
|
||||||
|
#include "sync.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,5 +21,17 @@ int vnodeOpenAllocatorPool(SVnode *pVnode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void vnodeCloseAllocatorPool(SVnode *pVnode) {
|
void vnodeCloseAllocatorPool(SVnode *pVnode) {
|
||||||
|
if (pVnode->pool) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ------------------------ STATIC METHODS ------------------------ */
|
||||||
|
static SVAllocatorPool *vapCreate() {
|
||||||
|
SVAllocatorPool *pPool = NULL;
|
||||||
|
/* TODO */
|
||||||
|
return pPool;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void vapDestroy() {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
Loading…
Reference in New Issue