Boost logo

Boost :

Subject: Re: [boost] [transact] code in sandbox
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-02-14 18:53:52


----- Original Message -----
From: <strasser_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, February 12, 2010 4:18 PM
Subject: Re: [boost] [transact] code in sandbox

> I guess the only way to achieve that is 2 seperate sets of macros.
>
> let me know what kind of support from RMs/TMs/transactions you need
> for these macros.

Hi, here they are some of operations I need

TM::transaction

void commit();
void rollback(); | void abort();
void rollback_only(); | void force_to_abort();
void restart();

bool is_top_level();
transaction_state status();
where
enum transaction_state {
    active,
    marked_roolback_only, | forced_to_abort
    prepared,
    committed,
    rolledback,
    preparing,
    committing,
    rollingback
    ...
};
or
bool active();
bool marked_roolback_only()
bool prepared()
bool commited();
...

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk