![]() |
![]() |
e-docs > Tuxedo > ATMI C Function Reference > Section 3c - C Functions |
ATMI C Function Reference
|
Name
tpclose()—Routine for closing a resource manager.
Synopsis
#include <atmi.h>
int tpclose(void)
Description
tpclose() tears down the association between the caller and the resource manager to which it is linked. Since resource managers differ in their close semantics, the specific information needed to close a particular resource manager is placed in a configuration file.
If a resource manager is already closed (that is, tpclose() is called more than once), no action is taken and success is returned.
In a multithreaded application, a thread in the TPINVALIDCONTEXT state is not allowed to issue a call to tpclose().
Return Values
Upon failure, tpclose() returns -1 and sets tperrno to indicate the error condition.
Errors
Upon failure, tpclose() fails and sets tperrno to one of the following values:
See Also
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |