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

📄 async.h

📁 PB 熟悉的哥们希望大家可以互相学习一下
💻 H
字号:
/************************************************************
 *                                                          *
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -