📄 pthread_schedule.h
字号:
/* set tabstop=4 */
/********************************************************************************
* *
* Copyright(C) 2004 Penta-Micro *
* *
* ALL RIGHT RESERVED *
* *
* This software is the property of Penta-Micro and is furnished under *
* license by Penta-Micro. This software may be used only in accordance *
* with the terms of said license. This copyright notice may not be *
* removed, modified or obliterated without the prior written permission *
* of Penta-Micro. *
* *
* This software may not be copyed, transmitted, provided to or otherwise *
* made available to any other person, company, corporation or other entity *
* except as specified in the terms of said license. *
* *
* No right, title, ownership or other interest in the software is hereby *
* granted or transferred. *
* *
* The information contained herein is subject to change without notice and *
* should not be construed as a commitment by Penta-Micro. *
* *
********************************************************************************
MODULE NAME: PTHREAD_SCHEDULE.H
REVISION HISTORY:
Date Ver Name Description
---------- --- --------------------- -----------------------------------------
06/30/2004 2.0 CheulBeck(whitefe) Created
...............................................................................
DESCRIPTION:
This Module contains definition for schedule recording function.
...............................................................................
*/
#ifndef __PTHREAD_SCHEDULE_H
#define __PTHREAD_SCHEDULE_H
/** ************************************************************************* **
** includes
** ************************************************************************* **/
#include "typedef.h"
/** ************************************************************************* **
** defines
** ************************************************************************* **/
/** ************************************************************************* **
** typedefs
** ************************************************************************* **/
typedef struct __SCHEDULE_OBJECT__ {
UNS16 sig_id;
UNS16 sig_value;
UNS16 flag_prev[4];
UNS16 state_prev[4];
struct tm tm_cur;
struct tm tm_prev;
SETUP_PARAM *param;
PTHREAD_STATE *state;
} SCHEDULE_OBJECT;
/** ************************************************************************* **
** function prototypes
** ************************************************************************* **/
void *pthread_schedule(void *args);
RETURN get_current_time(SCHEDULE_OBJECT *pso);
BOOL time_filter(SCHEDULE_OBJECT *pso);
RETURN check_state_schedule_rec(SCHEDULE_OBJECT *pso);
#endif /* __PTHREAD_SCHEDULE_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -