|Oracle Call Interface Programmer's Guide
Release 2 (9.2)
Part Number A96584-01
More OCI Relational Functions, 70 of 106
Retrieves the OCIThreadId of the thread in which it is called.
The OCI environment or user session handle.
The OCI error handle. If there is an error, it is recorded in
err and this function returns OCI_ERROR. Diagnostic information can be obtained by calling
This should point to the location in which to place the ID of the calling thread.
tid should be initialized by
OCIThreadIdInit(). When OCIThread is used in a single-threaded environment,
OCIThreadIdGet() will always place the same value in the location pointed to by
tid. The exact value itself is not important. The important thing is that it is not the same as the NULL thread ID and that it is always the same value.