bench/RandomGraphList.h
void random_transaction(thread_args_t* args,
                                unsigned int* seed,
                                unsigned int val,
                                unsigned int chance)
        {
            if (rand_r(seed) % 2)
            {
                m_graph->insert(seed);
                ++args->count[TXN_INSERT];
            }
            else
            {
                m_graph->remove(seed);
                ++args->count[TXN_REMOVE];
            }
        }
// 50/50 mix of inserts and deletes
50/50 mix of inserts and deletes
50 / 50 mix of inserts and deletes
void random_transaction(thread_args_t* args,
                                unsigned int* seed,
                                unsigned int val,
                                unsigned int chance)
        {
            if (rand_r(seed) % 2)
            {
                m_graph->insert(seed);
                ++args->count[TXN_INSERT];
            }
            else
            {
                m_graph->remove(seed);
                ++args->count[TXN_REMOVE];
            }
        }
void random_transaction ( thread_args_t * args , unsigned int * seed , unsigned int val , unsigned int chance ) { if ( rand_r ( seed ) % 2 ) { m_graph -> insert ( seed ) ; ++ args -> count [ TXN_INSERT ] ; } else { m_graph -> remove ( seed ) ; ++ args -> count [ TXN_REMOVE ] ; } }
50/50 mix of inserts and deletes
50 / 50 mix of inserts and deletes