OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

dc_lck_release_all - Release all the resources from lock

Format

ANSI C, C++

#include <dclck.h>
int  dc_lck_release_all (DCLONG ownerflag, DCLONG flags)

K&R C

#include <dclck.h>
int  dc_lck_release_all (ownerflag, flags)
DCLONG     ownerflag;
DCLONG     flags;

Description

The function dc_lck_release_all() releases all the resources from lock which was specified in the function dc_lck_get(). Call the function dc_lck_release_all() when releasing the resources from lock before the synchronization point is acquired.

When the global transaction with lock specified terminates, the OpenTP1 lock service automatically releases the resources from lock. In this case, there is no need to specify release from lock in the UAP.

Arguments whose values are set in the UAP

ownerflag

Specify DCLCK_OWNER_MIGRATE.

flags

Specify DCNOFLAGS.

Return values

Return value Return value (numeric) Explanation
DC_OK 0 Normal termination.
DCLCKER_PARAM -401 The value specified for the argument is invalid.
DCLCKER_NOTHING -456 The resource was not acquired for the transaction that called this function.
DCLCKER_OUTOFTRN -455 The function was called from a UAP which was not operating as a transaction.
DCLCKER_VERSION -457 The OpenTP1 library version does not match the lock service version.