Table of Contents

Name

BusyWait - wait for a datapoint to achieve a value

Description

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.

Syntax

int BusyWait(
   int DBchanAux,

   CONFLIST *CFpBSY,

   int State,

   int Tries

   );

Arguments

DBchanAux

The file descriptor of the dbman connection.

CFpBSY

pointer to the CONFLIST entry to use to obtain the tagname of the parameter to monitor

State

The desired state of the datapoint.

Tries

The number of times to test the state of the datapoint.

Return Value

0 is returned on success.
1 is returned on failure.

See Also

libmngr(3mngr)

Manual page revision

$Id: BusyWait.3,v 1.1 2002/04/07 18:35:52 kitchen Exp $


Table of Contents