Caveats of thread use

Client-Library uses a connection state machine to verify that applications call Client-Library routines in a logical sequence. See Chapter 2, “Program Structure” in the Open Client Client-Library/C Programmer’s Guide for an explanation of the steps involved in structuring a Client-Library application.

The assumption underlying the use of threads is that when a thread disassociates from a transaction branch, it leaves the state machine in an inactive state. By default, all Embedded SQL statements leave the connection quiescent. With Client-Library, this is true only in the following circumstances: