Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

SPT_ENDTRANSACTION(3) OSS Library Calls Reference Manual
NAME
SPT_ENDTRANSACTION - Ends the transaction associated with the current process and
current thread
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series and J-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
signed16 SPT_ENDTRANSACTION(
void
);
PARAMETERS
None.
DESCRIPTION
This function commits the database changes associated with a transaction started by the current
thread; if the action finishes successfully, the changes made by the transaction are permanent and
the locks held for the transaction are released.
SPT_ENDTRANSACTION( ) is a thread-synchronous operation. For example, the thread (but
not the process), will wait for completion of the operation. The operation is, therefore, a thread
cancellation point. In other words, a cancel exception can be delivered while the thread is wait-
ing for ENDTRANSACTION completion. If such a cancellation occurs, the ENDTRANSAC-
TION might or might not have finished. The TMF STATUSTRANSACTION procedure call can
be used to determine the state.
RETURN VALUES
A status word is returned. The value is one of the following:
0 (zero) The SPT_ENDTRANSACTION( ) operation completed successfully.
Nonzero values
The Guardian file-system error with this error number occurred.
RELATED INFORMATION
Functions: SPT_BEGINTRANSACTION(3).
692 Hewlett-Packard Company 527187-017