async.h

来自「PB 熟悉的哥们希望大家可以互相学习一下」· C头文件 代码 · 共 52 行

H
52
字号
/************************************************************
 *                                                          *
 * Copyright (c) 2001-2007 McObject LLC. All Right Reserved.*
 *                                                          *
 ************************************************************/
/* 
 * Application's specific header file
 *
 */
#ifndef ASYNC_H__
    #define ASYNC_H__

    #include "mco.h"
    #include "platform.h"


    //#include <stdio.h>
    //#include <stdlib.h>

    //#include <string.h>

    #include "evdb.h"

    /* Common defines */
    #define DBSIZE (1024*4000)
    #ifndef MCO_PLATFORM_X64
        #define PAGESIZE 100
    #else 
        #define PAGESIZE 200
    #endif 
    #define NOBJECTS 5
    #define NTHREADS 5

    typedef struct ThrParam_
    {
        mco_db_h db;
        int finished;
    } ThrParam;

    extern const char dbName[];
    ;

    /* counters */
    extern long ev_new_count;
    extern long ev_update_count;
    extern long ev_del_count;

    /* Functions */
    void threads(ThrParam* thread_params);

#endif /* ASYNC_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?