User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:xatmi:tpgetlev.3

tpgetlev

Name

tpgetlev — Get transaction level

Synopsis

#include <atmi.h>

int tpgetlev (void);

For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm

For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm

DESCRIPTION

Function returns current status of global transaction. If transaction is started by tpbegin() or called service is part of global transaction (invoked by process in global TX and was not specified TPNOTRAN), then function returns 1. If process is not part of global transaction, then return value is 0.

RETURN VALUE

0 - current thread is not part of global transaction. 1 - current thread is part of global transaction.

ERRORS

Function does not return any errors.

EXAMPLE

See atmitest/test021_xafull/atmisv21.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd