Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
t_rest.cxx File Reference
#include <iostream>
#include <HDDM/hddm_r.hpp>
#include <fstream>
#include <map>
#include <pthread.h>
#include <unistd.h>
#include <time.h>

Go to the source code of this file.

Functions

void * event_reader (void *arg)
 
void * event_writer (void *arg)
 
void * random_reader (void *arg)
 
void usage ()
 
int main (int argc, const char *argv[])
 

Variables

int max_test = 99
 
int maxevents = -1
 
int multithreads = 4
 
float tread = 0
 
pthread_mutex_t lock
 
std::map< int,
hddm_r::streamposition > 
postable
 

Function Documentation

void* event_reader ( void *  arg)

Definition at line 40 of file t_rest.cxx.

References lock, and printf().

Referenced by main().

void* event_writer ( void *  arg)

Definition at line 55 of file t_rest.cxx.

References printf().

Referenced by main().

int main ( int  argc,
const char *  argv[] 
)
void* random_reader ( void *  arg)

Definition at line 69 of file t_rest.cxx.

References lock, and printf().

Referenced by main().

void usage ( )

Definition at line 114 of file t_rest.cxx.

References printf().

Referenced by main().

Variable Documentation

pthread_mutex_t lock

Definition at line 36 of file t_rest.cxx.

Referenced by event_reader(), main(), and random_reader().

int max_test = 99

Definition at line 31 of file t_rest.cxx.

Referenced by main().

int maxevents = -1

Definition at line 32 of file t_rest.cxx.

Referenced by main().

int multithreads = 4

Definition at line 33 of file t_rest.cxx.

Referenced by main().

std::map<int, hddm_r::streamposition> postable

Definition at line 38 of file t_rest.cxx.

float tread = 0

Definition at line 34 of file t_rest.cxx.

Referenced by main().