DCE Application Programming Guide
NonStop DCE Jacket Functions
HP NonStop DCE Application Programming Guide—429551-003
C-18
TMF Transaction Demarcation
Figure C-8. DCE_ENDTRANSACTION(3) Reference Page
NAME
DCE_ENDTRANSACTION - Ends a transaction associated with the current process
and current thread
SYNOPSIS
#include <dce/pthread.h>
signed16 DCE_ENDTRANSACTION(
void
);
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.
DCE_ENDTRANSACTION() is a thread-synchronous operation: the thread (but not
the process) waits for completion of the operation. The operation is, therefore, a thread
cancellation point: a cancel exception can be delivered while the thread is waiting 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 (FEOK)
The DCE_ENDTRANSACTION() operation finished successfully.
Nonzero values
The Guardian file-system error with this error number occurred.
RELATED INFORMATION
Functions: DCE_BEGINTRANSACTION(3).