Set the busy timeout delay for a database connection
#include <qdb/qdb.h> int qdb_setbusytimeout( qdb_hdt_t *hdl, int timeout );
qdb
This function sets the busy timeout delay for the database connection specified by hdl. The initial value is specified on the qdb commandline with the -t option, with a default of 5000 ms. Specifying a value of 0 is the same as QDB_TIMEOUT_NONBLOCK.
The timeout is the amount of time that a client will attempt to access a database before it returns EBUSY. If two clients attempt to write to the database, for example, the database is locked while the first client is writing, and the second client's attempt will fail if the busy timeout period expires.
(The QDB_CONN_NONBLOCKING flag bit is set with qdb_connect() and toggled with qdb_parameters().)
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |