prthread.h
来自「MiniWinOuterSM MiniWinOuterSM」· C头文件 代码 · 共 39 行
H
39 行
/*
PrThread.h
Copyright (C) 2004-2005 DVBStudio. All rights reserved.
*/
#ifndef _PrTHERAD_H_
#define _PrTHERAD_H_
#include "PrTypes.h"
#include "PrTime.h"
PR_BEGIN_EXTERN_C
#define PrPRIORITY_MIN 0
#define PrPRIORITY_MAX 255
typedef struct PDThread *PRThread;
PRStatus PrThreadInit(void);
PRStatus PrThreadTerm(void);
PRThread PrThreadCreate(UINT32 stackSize,
UINT32 priority,void (*func)(void *arg), void *arg);
void PrThreadDestroy(PRThread thread);
PRStatus PrThreadSetPriority(PRThread thread,UINT32 priority);
PRStatus PrThreadGetPriority(const PRThread thread,UINT32 *priority);
PRThread PrThreadGetSelf(void);
void PrThreadExit(void);
PRStatus PrThreadJoin(PRThread thread);
void PrThreadYield(void);
void PrThreadSuspend(PRThread thread);
void PrThreadResume(PRThread thread);
void PrThreadSleep(UINT32 timeout);
PR_END_EXTERN_C
#endif /* _PrTHERAD_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?