更正了mutex优先级置顶协议中的bug;
新加入了"周期性定时器"内核对象,用于周期性事务处理。说明如下:
/*
*******************************************************************************
* 周期性定时器对象相关函数 *
*******************************************************************************
*/
/* 创建周期性定时器对象:
* pTimerName:说明定时器对象名称,
*
* cwIDRBM:说明环形队列消息对象ID,用于周期性定时器超时时发送环形队列消息,
*
* 返回值为周期性定时器对象标识ID,用于周期性定时器对象相关的系统调用。
*/
extern CWORD _cdecl_ CreateTimer(STR *pTimerName, CWORD cwIDRBM);
/* 连接周期性定时器对象,使之有效,周期性发送发送环形队列消息:
* cwIDTimer:周期性定时器对象标识ID,
*
* dwPeriod:说明定时器周期,单位为时间片,
*
* 成功后,返回值为SUCCESS,然后可用GetRBM、GetRBMTry接受消息msg,
* msg.dwSize说明超时的周期性定时器对象ID。
*/
extern CWORD _cdecl_ ConnectTimer(CWORD cwIDTimer, DWORD dwPeriod);
/* 断开周期性定时器对象,使之失效,停止发送发送环形队列消息:
* cwIDTimer:周期性定时器对象标识ID,
*
* 成功后,返回值为SUCCESS,然后可用DeleteObject删除周期性定时器对象。
*/
extern CWORD _cdecl_ UnConnectTimer(CWORD cwIDTimer);
下面有新的库文件及应用实例可供下载。
rtCell16.rar是16位应用实例;rtCell32.rar是32位应用实例。
[ Last edited by taowentao on 2005-10-30 at 15:10 ]
新加入了"周期性定时器"内核对象,用于周期性事务处理。说明如下:
/*
*******************************************************************************
* 周期性定时器对象相关函数 *
*******************************************************************************
*/
/* 创建周期性定时器对象:
* pTimerName:说明定时器对象名称,
*
* cwIDRBM:说明环形队列消息对象ID,用于周期性定时器超时时发送环形队列消息,
*
* 返回值为周期性定时器对象标识ID,用于周期性定时器对象相关的系统调用。
*/
extern CWORD _cdecl_ CreateTimer(STR *pTimerName, CWORD cwIDRBM);
/* 连接周期性定时器对象,使之有效,周期性发送发送环形队列消息:
* cwIDTimer:周期性定时器对象标识ID,
*
* dwPeriod:说明定时器周期,单位为时间片,
*
* 成功后,返回值为SUCCESS,然后可用GetRBM、GetRBMTry接受消息msg,
* msg.dwSize说明超时的周期性定时器对象ID。
*/
extern CWORD _cdecl_ ConnectTimer(CWORD cwIDTimer, DWORD dwPeriod);
/* 断开周期性定时器对象,使之失效,停止发送发送环形队列消息:
* cwIDTimer:周期性定时器对象标识ID,
*
* 成功后,返回值为SUCCESS,然后可用DeleteObject删除周期性定时器对象。
*/
extern CWORD _cdecl_ UnConnectTimer(CWORD cwIDTimer);
下面有新的库文件及应用实例可供下载。
rtCell16.rar是16位应用实例;rtCell32.rar是32位应用实例。
[ Last edited by taowentao on 2005-10-30 at 15:10 ]

