tlds
Transactional Operations for Linked Data Structures
|
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include "client.h"
#include "customer.h"
#include "list.h"
#include "manager.h"
#include "map.h"
#include "memory.h"
#include "operation.h"
#include "random.h"
#include "reservation.h"
#include "thread.h"
#include "timer.h"
#include "tm.h"
#include "types.h"
#include "utility.h"
Macros | |
#define | PARAM_DEFAULT_CLIENTS (1) |
#define | PARAM_DEFAULT_NUMBER (10) |
#define | PARAM_DEFAULT_QUERIES (90) |
#define | PARAM_DEFAULT_RELATIONS (1 << 16) |
#define | PARAM_DEFAULT_TRANSACTIONS (1 << 26) |
#define | PARAM_DEFAULT_USER (80) |
Enumerations | |
enum | param_types { PARAM_EDGE = (unsigned char)'e', PARAM_INSERT = (unsigned char)'i', PARAM_NUMBER = (unsigned char)'n', PARAM_PERCENT = (unsigned char)'p', PARAM_RECORD = (unsigned char)'r', PARAM_SEED = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t', PARAM_VAR = (unsigned char)'v', PARAM_GENE = (unsigned char)'g', PARAM_NUMBER = (unsigned char)'n', PARAM_SEGMENT = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t', PARAM_ATTACK = (unsigned char)'a', PARAM_LENGTH = (unsigned char)'l', PARAM_NUM = (unsigned char)'n', PARAM_SEED = (unsigned char)'s', PARAM_THREAD = (unsigned char)'t', PARAM_BENDCOST = (unsigned char)'b', PARAM_THREAD = (unsigned char)'t', PARAM_XCOST = (unsigned char)'x', PARAM_YCOST = (unsigned char)'y', PARAM_ZCOST = (unsigned char)'z', PARAM_CLIENTS = (unsigned char)'c', PARAM_NUMBER = (unsigned char)'n', PARAM_QUERIES = (unsigned char)'q', PARAM_RELATIONS = (unsigned char)'r', PARAM_TRANSACTIONS = (unsigned char)'t', PARAM_USER = (unsigned char)'u' } |
Functions | |
static void | displayUsage (const char *appName) |
static void | setDefaultParams () |
static void | parseArgs (long argc, char *const argv[]) |
static bool_t | addCustomer (manager_t *managerPtr, long id, long num, long price) |
static manager_t * | initializeManager () |
static client_t ** | initializeClients (manager_t *managerPtr) |
static void | checkTables (manager_t *managerPtr) |
static void | freeClients (client_t **clients) |
MAIN (argc, argv) | |
Variables | |
double | global_params [256] |
#define PARAM_DEFAULT_CLIENTS (1) |
#define PARAM_DEFAULT_NUMBER (10) |
#define PARAM_DEFAULT_QUERIES (90) |
#define PARAM_DEFAULT_RELATIONS (1 << 16) |
#define PARAM_DEFAULT_TRANSACTIONS (1 << 26) |
#define PARAM_DEFAULT_USER (80) |
enum param_types |
|
static |
|
static |
|
static |
|
static |
MAIN | ( | argc | , |
argv | |||
) |
|
static |
|
static |
double global_params[256] |