Atlas Runtime
|
#include <assert.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include "atlas_alloc.h"
#include "atlas_api.h"
Classes | |
struct | node_t |
struct | queue_t |
Macros | |
#define | NUM_ITEMS 100000 |
Typedefs | |
typedef struct node_t | node_t |
typedef struct queue_t | queue_t |
Functions | |
void | traverse () |
void | initialize () |
void | enqueue (int val) |
int | dequeue (int *valp) |
void * | do_work () |
int | main () |
Variables | |
queue_t * | Q |
int | ready = 0 |
int | done = 0 |
pthread_mutex_t | ready_lock |
pthread_mutex_t | done_lock |
uint32_t | queue_rgn_id |
#define NUM_ITEMS 100000 |
int dequeue | ( | int * | valp | ) |
void* do_work | ( | ) |
void enqueue | ( | int | val | ) |
void initialize | ( | ) |
int main | ( | ) |
void traverse | ( | ) |
int done = 0 |
pthread_mutex_t done_lock |
queue_t* Q |
uint32_t queue_rgn_id |
int ready = 0 |
pthread_mutex_t ready_lock |