Corrected bugs in the mutex priority top-priority protocol;
Newly added "periodic timer" kernel object for periodic transaction processing. The description is as follows:
/*
*******************************************************************************
* Periodic Timer Object Related Functions *
*******************************************************************************
*/
/* Create periodic timer object:
* pTimerName: indicates the timer object name,
*
* cwIDRBM: indicates the ring queue message object ID, used to send ring queue messages when the periodic timer times out,
*
* The return value is the periodic timer object identification ID, used for system calls related to the periodic timer object.
*/
extern CWORD _cdecl_ CreateTimer(STR *pTimerName, CWORD cwIDRBM);
/* Connect periodic timer object to make it effective, periodically send ring queue messages:
* cwIDTimer: periodic timer object identification ID,
*
* dwPeriod: indicates the timer period, unit is time slice,
*
* After success, the return value is SUCCESS, then you can use GetRBM, GetRBMTry to receive message msg,
* msg.dwSize indicates the timed-out periodic timer object ID.
*/
extern CWORD _cdecl_ ConnectTimer(CWORD cwIDTimer, DWORD dwPeriod);
/* Disconnect periodic timer object to make it invalid, stop sending ring queue messages:
* cwIDTimer: periodic timer object identification ID,
*
* After success, the return value is SUCCESS, then you can use DeleteObject to delete the periodic timer object.
*/
extern CWORD _cdecl_ UnConnectTimer(CWORD cwIDTimer);
There are new library files and application examples available for download below.
rtCell16.rar is a 16-bit application example; rtCell32.rar is a 32-bit application example.
[ Last edited by taowentao on 2005-10-30 at 15:10 ]
Newly added "periodic timer" kernel object for periodic transaction processing. The description is as follows:
/*
*******************************************************************************
* Periodic Timer Object Related Functions *
*******************************************************************************
*/
/* Create periodic timer object:
* pTimerName: indicates the timer object name,
*
* cwIDRBM: indicates the ring queue message object ID, used to send ring queue messages when the periodic timer times out,
*
* The return value is the periodic timer object identification ID, used for system calls related to the periodic timer object.
*/
extern CWORD _cdecl_ CreateTimer(STR *pTimerName, CWORD cwIDRBM);
/* Connect periodic timer object to make it effective, periodically send ring queue messages:
* cwIDTimer: periodic timer object identification ID,
*
* dwPeriod: indicates the timer period, unit is time slice,
*
* After success, the return value is SUCCESS, then you can use GetRBM, GetRBMTry to receive message msg,
* msg.dwSize indicates the timed-out periodic timer object ID.
*/
extern CWORD _cdecl_ ConnectTimer(CWORD cwIDTimer, DWORD dwPeriod);
/* Disconnect periodic timer object to make it invalid, stop sending ring queue messages:
* cwIDTimer: periodic timer object identification ID,
*
* After success, the return value is SUCCESS, then you can use DeleteObject to delete the periodic timer object.
*/
extern CWORD _cdecl_ UnConnectTimer(CWORD cwIDTimer);
There are new library files and application examples available for download below.
rtCell16.rar is a 16-bit application example; rtCell32.rar is a 32-bit application example.
[ Last edited by taowentao on 2005-10-30 at 15:10 ]

