Set the length of time that an operation will wait for a lock to become available.
This ensures that every database operation will eventually return. Most operations will fail if a lock times out.
- Parameters:
-
| msec | Timeout duration, in milliseconds. Use a duration of INT_MAX to disable timeouts. |
- Returns:
-
- Note:
- set_timeout and get_timeout are not supported under single-user configuration and will return DB_ENOTIMPL when used with the single-user version.
- See also:
- get_timeout