Set busy timeout

Source: Internet
Author: User
Original article title: Set a busy timeout

 

Int sqlite3_busy_timeout (sqlite3 *, int MS );

This function sets a "Database busy processing object". When the table to be accessed is locked, the processing object will wait for the specified time and time out. This processing object will sleep multiple times until the cumulative sleep reaches or exceeds Ms milliseconds. When it reaches or exceeds, the processing object returns 0, so that the sqlite3_step () function returns sqlite_busy or sqlite_ioerr_blocked.

Passing a parameter smaller than or equal to 0 to this function will close all busy processing objects in the database.

At one time point of a database connection, only one busy object can be processed by the database. If the busy processing object is set by calling other functions before the setting, the previous setting will be cleared.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.