tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
common.hpp File Reference
#include <iostream>
#include <cassert>
#include "common/platform.hpp"
#include "common/ThreadLocal.hpp"
#include "lock.hpp"
#include <malloc.h>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRANSACTION_SAFE
 
#define TRANSACTION_PURE
 
#define TRANSACTION_WAIVER
 
#define SYS_INIT()
 
#define THREAD_INIT()
 
#define THREAD_SHUTDOWN()
 
#define SYS_SHUTDOWN()
 

Functions

 THREAD_LOCAL_DECL_TYPE (thread *) currentThread
 

Variables

int num_points
 
int num_workers
 
bool output_incremental
 
bool output_end
 
bool verbose
 
static const int MAX_WORKERS = 32
 
d_lock io_lock
 
unsigned long long start_time
 
unsigned long long last_time
 

Macro Definition Documentation

#define SYS_INIT ( )
#define SYS_SHUTDOWN ( )
#define THREAD_INIT ( )
#define THREAD_SHUTDOWN ( )
#define TRANSACTION_PURE
#define TRANSACTION_SAFE
#define TRANSACTION_WAIVER

Function Documentation

THREAD_LOCAL_DECL_TYPE ( thread )

Variable Documentation

d_lock io_lock
unsigned long long last_time
const int MAX_WORKERS = 32
static
int num_points
int num_workers
bool output_end
bool output_incremental
unsigned long long start_time
bool verbose