SE_stable_set_concurrency

Establishes concurrency control for threaded client applications

Usage syntax

LONG SE_stable_set_concurrency (SE_STABLE stable, LONG policy);

Parameters
stable The s-table handle
policy The concurrency policy
Description

SE_stable_set_concurrency sets the concurrency policy for the specified shape (s) table. The concurrency policy affects how calls to the API for this shape table behave in a multithreaded environment.

The policies for concurrency are:

The environment set by SE_stable_set_concurrency applies to subsequent calls to SE_stable_set_concurrency. For safety in a multithreaded environment, call SE_stable_set_concurrency on an s table handle before passing it to any thread other than the one that created it.

Returns

SE_SUCCESS
SE_CONNECTION_LOCKED

SE_FAILURE

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_OUT_OF_MUTEXES

SE_SDE_NOT_STARTED