pthread_schedule.h

来自「1、基于韩国at2041芯片开发的Linux环境的DVR代码。 2、以原来代码」· C头文件 代码 · 共 81 行

H
81
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?