|Oracle Call Interface Programmer's Guide
Part Number A89857-01
More OCI Relational Functions, 57 of 97
Creates a new thread.
sword OCIThreadCreate ( dvoid *hndl, OCIError *err, void (*start) (dvoid dvoid *arg, OCIThreadId *tid, OCIThreadHandle *tHnd );
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
The function in which the new thread should begin execution.
The argument to give the function pointed to by
If not NULL, gets the ID for the new thread.
If not NULL, gets the handle for the new thread.
The new thread starts by executing a call to the function pointed to by
start with the argument given by
arg. When that function returns, the new thread will terminate. The function should not return a value and should accept one parameter, a dvoid. The call to
OCIThreadCreate() must be matched by a call to
OCIThreadClose() if and only if
tHnd is non-NULL.
tHnd is NULL, a thread ID placed in
*tid will not be valid in the calling thread because the timing of the spawned threads termination is unknown.
tid should be initialized by
tHnd should be initialized by