* $Id: ORTEPublicationTimer.c,v 0.0.0.1 2003/12/15
*
* DEBUG: section 32 Publication Timer
- * AUTHOR: Petr Smolik petr.smolik@wo.cz
*
- * ORTE - OCERA Real-Time Ethernet http://www.ocera.org/
+ * -------------------------------------------------------------------
+ * ORTE
+ * Open Real-Time Ethernet
+ *
+ * Copyright (C) 2001-2006
+ * Department of Control Engineering FEE CTU Prague, Czech Republic
+ * http://dce.felk.cvut.cz
+ * http://www.ocera.org
+ *
+ * Author: Petr Smolik petr.smolik@wo.cz
+ * Advisor: Pavel Pisa
+ * Project Responsible: Zdenek Hanzalek
* --------------------------------------------------------------------
*
* This program is free software; you can redistribute it and/or modify
ORTESendInfo info;
pp=(ORTEPublProp*)cstWriter->objectEntryOID->attributes;
- info.status=NEED_DATA;
- info.topic=pp->topic;
- info.type=pp->typeName;
- info.senderGUID=cstWriter->objectEntryOID->guid;
- cstWriter->objectEntryOID->sendCallBack(&info,
- cstWriter->objectEntryOID->instance,
- cstWriter->objectEntryOID->callBackParam);
CSTWriterTryDestroyBestEffortIssue(cstWriter);
+
if (cstWriter->csChangesCounter<pp->sendQueueSize) {
- ORTEPublicationSendLocked(cstWriter);
+ info.status=NEED_DATA;
+ info.topic=(char*)pp->topic;
+ info.type=(char*)pp->typeName;
+ info.senderGUID=cstWriter->objectEntryOID->guid;
+ cstWriter->objectEntryOID->sendCallBack(&info,
+ cstWriter->objectEntryOID->instance,
+ cstWriter->objectEntryOID->callBackParam);
+ ORTEPublicationSendLocked(cstWriter,NULL);
}
+
eventAdd(d,
cstWriter->objectEntryOID->objectEntryAID,
&cstWriter->objectEntryOID->sendCallBackDelayTimer,