Atlas Runtime
sll_mt_ll.cpp File Reference
#include <alloca.h>
#include <assert.h>
#include <complex>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include "atlas_alloc.h"
#include "atlas_api.h"
Include dependency graph for sll_mt_ll.cpp:

Classes

struct  Node
 
struct  SearchResult
 

Typedefs

typedef struct Node Node
 
typedef struct SearchResult SearchResult
 

Functions

NodecreateSingleNode (int Num)
 
NodecopySingleNode (Node *orig)
 
void flushNode (Node *node)
 
NodeinsertPass1 (int Num)
 
long printSLL ()
 
void * insertPass2 (__attribute__((unused)) void *threadid)
 
int main (int argc, char *argv[])
 

Variables

NodeSLL = NULL
 
int NumItems = 0
 
int NumFAI = 0
 
int NumBlanks = 0
 
pthread_mutex_t InsertPosLock = PTHREAD_MUTEX_INITIALIZER
 
NodeInsertAfter = NULL
 
int InsertValue
 

Typedef Documentation

typedef struct Node Node
typedef struct SearchResult SearchResult

Function Documentation

Node* copySingleNode ( Node orig)
Node* createSingleNode ( int  Num)
void flushNode ( Node node)
Node* insertPass1 ( int  Num)
void* insertPass2 ( __attribute__((unused)) void *  threadid)
int main ( int  argc,
char *  argv[] 
)
long printSLL ( )

Variable Documentation

Node* InsertAfter = NULL
pthread_mutex_t InsertPosLock = PTHREAD_MUTEX_INITIALIZER
int InsertValue
int NumBlanks = 0
int NumFAI = 0
int NumItems = 0
Node* SLL = NULL