Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_timeout http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
      D_TIMEOUT

SUMMARY
   d_timeout(secs)
   int secs;

ARGUMENTS

   secs      The number of seconds to wait before timing out.

DESCRIPTION

   This function will set the amount of time the lock manager will allow an
   unsatisfied lock request to wait on the lock request queue for the user
   making the d_timeout call. The number of seconds to wait is specified by
   secs. A negative value will indicate that no lock request are to timeout
   (i.e. tley'll wait forevel). Since timeouts are the only means of detecting
   potential deadlock situations, be very cautious about turning off timeouts.
   The default timeout value is 10 seconds and is reset whenever the database
   is opened. Thus, d_timeout must be called after d_open. status S_UNAVAIL is
   returned by the lock request functions d_lock, d_relock and d_setlock when
   a timeout is occurs.

   This function is present in single-user version of db_VISTA, but performs no
   action. This allows multi_user applications to link with the single_user
   version for operation on stand-alone computers.

CURRENCY CHANGES
   None

RETURN CODES
   -1   S_DBOPEN      Database is not open. Function called before d_open.

EXAMPLE

   d_open("tims","s");
   d_timeout(30); /* set a  second timeout value*/

See Also: d_lock d_reclock d_setlock

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson