예제 #1
0
파일: rvp.cpp 프로젝트: glycerine/shore-mt
w_rc_t rvp_t::run()
{
    w_rc_t e = _run();
    notify_partitions();
    giveback();
    return (e);
}
예제 #2
0
파일: Index.cpp 프로젝트: mgrosso/cplusql
Index::Iterator
Index::begin()
{
    index_type::iterator b =  d_->index_.begin();
    Index::Iterator giveback( b );
    return giveback ;
}
예제 #3
0
파일: Index.cpp 프로젝트: mgrosso/cplusql
Index::Iterator
Index::end()
{
    index_type::iterator e =  d_->index_.end();
    Index::Iterator giveback( e );
    return giveback ;
}
예제 #4
0
파일: Index.cpp 프로젝트: mgrosso/cplusql
Index::bounds_type
Index::bounds( Index::key_type key )
{
    pair< index_type::iterator, index_type::iterator > p = d_->index_.equal_range( key );
    bounds_type giveback ( p.first, p.second);
    return giveback ;
}
예제 #5
0
파일: rvp.cpp 프로젝트: glycerine/shore-mt
void terminal_rvp_t::notify_on_abort()
{
    // If DFlusher is enabled
    // Do the notification of the committed actions and 
    // release the local locks here.

    // After we aborted the xct we need to notify the client and the partitions.
    // The notification of the commmitted xcts will be done by the DNotifier thread.

    notify_partitions();
    notify_client();

    TRACE( TRACE_TRX_FLOW, "Giving back aborted (%d)\n", _tid.get_lo());

    giveback();
}