mco_trans_set_error

Set an error code for transaction

Prototype

 

    MCO_RET mco_trans_set_error(mco_trans_h t, MCO_RET errcode);

 
 

Arguments

t The transaction handle
errcode The new error code

Description

Sets an error code

Should be invoked from a timer to set MCO_E_INTERRUPTED.

Return Codes

MCO_RET Previous error code

Files

Header file:
mco.h
Source file:
mcotrans.c
Library:
libmcolib.a