GraphChi  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros
Classes | Namespaces | Macros | Typedefs | Functions
pthread_tools.hpp File Reference
#include <cstdlib>
#include <memory.h>
#include <pthread.h>
#include <semaphore.h>
#include <sched.h>
#include <signal.h>
#include <sys/time.h>
#include <vector>
#include <cassert>
#include <list>
#include <iostream>

Go to the source code of this file.

Classes

class  graphchi::mutex
class  graphchi::conditional
class  graphchi::semaphore
class  graphchi::spinrwlock
union  graphchi::spinrwlock::rwticket
class  graphchi::rwlock
class  graphchi::barrier

Namespaces

namespace  graphchi

Macros

#define _POSIX_SPIN_LOCKS   -1
#define SPINLOCK_SUPPORTED   0
#define atomic_xadd(P, V)   __sync_fetch_and_add((P), (V))
#define cmpxchg(P, O, N)   __sync_val_compare_and_swap((P), (O), (N))
#define atomic_inc(P)   __sync_add_and_fetch((P), 1)

Typedefs

typedef mutex graphchi::spinlock
 if spinlock not supported, it is typedef it to a mutex.

Functions

void graphchi::prefetch_range (void *addr, size_t len)
void graphchi::prefetch_range_write (void *addr, size_t len)

Detailed Description

A collection of utilities for threading