SPQLINIT() API Function

Initializes the SPQL library for operation.

Valid in: SPD Server

Syntax

int spqlinit(void)

Required Argument

(void)

performs a one-time initialization that enables the SPQL library to function.

Details

SPQLINIT() function performs a one-time initialization that enables the SPQL library to function. For this reason, you must call SPQLINIT() function at least once to activate an SPQL program. Do not make other SPQL API calls before calling this function. If you do, the results are unpredictable. When SPQLINIT() function successfully completes, you can safely proceed to use the SPQL API in a multi-threaded context.
Note: SPQLINIT() is not a thread-safe function. Call it only within a single-threaded context in your application. Alternatively, call it within an application-controlled mutex region.
Returns: 0 if successful; SPQL_INITFAILED if the initialization fails.
Last updated: February 8, 2017