Table of Contents
BusyWait - wait for a datapoint to achieve a value
BusyWait
monitors a datapoint by polling
dbman for its value once per second. The
datapoint is polled for a maximum number of tries or until the datapoint
has achieved the desired value.
This function should only be used on a database
connection where no subscriptions have been posted. If a parameter has been
subscribed to and a change occurs while this function is in use the resulting
message from dbman will confuse operation.
This function is part of libmngr.
int BusyWait(
int DBchanAux,
CONFLIST *CFpBSY,
int State,
int Tries
);
The file descriptor of the
dbman connection.
pointer
to the
CONFLIST entry to use to obtain the tagname of the parameter to
monitor
The desired state of the datapoint.
The number of times
to test the state of the datapoint.
0 is returned on success.
1 is returned on failure.
libmngr(3mngr)
$Id:
BusyWait.3,v 1.1 2002/04/07 18:35:52 kitchen Exp $
Table of Contents