/* Notify that a transaction is starting */
lr_start_transaction("deposit");
/* Server API call */
rc = bank_deposit (50);
/* End transaction with operation result - pass or fail */
if (rc == 0)
lr_end_transaction("deposit", LR_PASS);
else
lr_end_transaction("deposit", LR_FAIL);
lr_start_transaction("deposit");
/* Server API call */
rc = bank_deposit (50);
/* End transaction with operation result - pass or fail */
if (rc == 0)
lr_end_transaction("deposit", LR_PASS);
else
lr_end_transaction("deposit", LR_FAIL);
No comments:
Post a Comment