tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
bmconfig.hpp File Reference
#include <stm/config.h>
#include <stdint.h>
#include <iostream>
Include dependency graph for bmconfig.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Config
 

Functions

Config CFG TM_ALIGN (64)
 
void bench_init ()
 
void bench_test (uintptr_t, uint32_t *)
 
bool bench_verify ()
 
void bench_reparse ()
 

Function Documentation

void bench_init ( )

BENCHMARKS IMPLEMENT THE FOLLOWING FUNCTIONS

Step 3: Declare an instance of the data type, and provide init, test, and verify functions

Here is the call graph for this function:

Here is the caller graph for this function:

void bench_reparse ( )

Step 4: Include the code that has the main() function, and the code for creating threads and calling the three above-named functions. Don't forget to provide an arg reparser.

Here is the caller graph for this function:

void bench_test ( uintptr_t  id,
uint32_t *   
)

Run a bunch of transactions that should cause conflicts threads either increment from front to back or from back to front, based on ID. This creates lots of conflicts

Here is the call graph for this function:

Here is the caller graph for this function:

bool bench_verify ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Config CFG TM_ALIGN ( 64  )