DH_PointAdd, DH_PointDivide, DH_PointMultiply — modify a point in place, with one message.
#include <cogent.h>
ST_STATUS DH_PointAdd(IP_Task* myself, PT_pCPOINT ppoint, double value, IP_Msg* hmsg, ER_hLIST elist );
ST_STATUS DH_PointDivide(IP_Task* myself, PT_pCPOINT ppoint, double value, IP_Msg* hmsg, ER_hLIST elist );
ST_STATUS DH_PointMultiply(IP_Task* myself, PT_pCPOINT ppoint, double value, IP_Msg* hmsg, ER_hLIST elist );
These functions give an atomic way to modify a value in the DataHub in place, using a single message. Normally a value is modified in three steps: read, modify, and write. This functions offers a way to modify a value without interference or serialization problems.
The operations provided are as follows:
| DH_PointAdd | Adds the value to the point. |
| DH_PointDivide | Divides the point by the value. |
| DH_PointMultiply | Multiplies the point by the value. |
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.