appthreads.h

来自「TI公司的DM642 DSP上开发的MPEG2编码源码」· C头文件 代码 · 共 57 行

H
57
字号
/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) ReferenceFrameworks 2.00.00 11-14-02 (swat-c17)" */
/*
 *  ======== appThreads.h ========
 *
 */
#ifndef APPTHREADS_
#define APPTHREADS_

#include <que.h>

/*#include "appResources.h" *//* application-wide information */

#ifdef __cplusplus
extern "C" {
#endif




/*
 *  Shared scratch memory buckets: most XDAIS algorithms need scratch memory,
 *  and it can be shared among more algorithms they can never be preempted
 *  by one another. By defining "buckets" of shared scratch memory we can
 *  minimize toal scratch memory requirements. When defining a cell, we
 *  set its "shared scratch bucket" to one of the values defined here.
 *  Typically, cells belonging to threads running at same priorities would
 *  go into the same scratch bucket.
 */
enum SSCRBUCKETS {
    THRIOSSCRBUCKET,
    SCRBUCKETS               // total number of shared scratch buckets
    };
    
// control message format
typedef struct CtrlMsg 
{
    LgUns cmd;                       // Message code
    LgUns arg1;                      // First message argument
    LgUns arg2;                      // Second message argument
    LgUns arg3;                      // Third message argument
} CtrlMsg;


#ifdef __cplusplus
}
#endif /* extern "C" */

#endif /* APPTHREADS_ */ 

⌨️ 快捷键说明

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