tlds
Transactional Operations for Linked Data Structures
|
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <vector>
#include <array>
#include <set>
#include <thread>
#include <mutex>
#include <boost/random.hpp>
#include <sched.h>
#include "common/timehelper.h"
#include "common/threadbarrier.h"
#include "bench/setadaptor.h"
Functions | |
template<typename T > | |
void | WorkThread (uint32_t numThread, int threadId, uint32_t testSize, uint32_t tranSize, uint32_t keyRange, uint32_t insertion, uint32_t deletion, ThreadBarrier &barrier, T &set) |
template<typename T > | |
void | Tester (uint32_t numThread, uint32_t testSize, uint32_t tranSize, uint32_t keyRange, uint32_t insertion, uint32_t deletion, SetAdaptor< T > &set) |
int | main (int argc, const char *argv[]) |
int main | ( | int | argc, |
const char * | argv[] | ||
) |
void Tester | ( | uint32_t | numThread, |
uint32_t | testSize, | ||
uint32_t | tranSize, | ||
uint32_t | keyRange, | ||
uint32_t | insertion, | ||
uint32_t | deletion, | ||
SetAdaptor< T > & | set | ||
) |
void WorkThread | ( | uint32_t | numThread, |
int | threadId, | ||
uint32_t | testSize, | ||
uint32_t | tranSize, | ||
uint32_t | keyRange, | ||
uint32_t | insertion, | ||
uint32_t | deletion, | ||
ThreadBarrier & | barrier, | ||
T & | set | ||
) |