Multi-core Hash Joins
Main-memory hash join implementations for multi-core CPUs
Macros | Typedefs
affinity.h File Reference

Affinity methods on Mac OS X. Mac OS X does not export interfaces that identify processors or control thread placement – explicit thread to processor binding is not supported. So this is just a place holder to compile in Mac OS, experiments should be run in Linux. More...

#include <pthread.h>
#include "../config.h"

Go to the source code of this file.

Macros

#define CPU_ZERO(PTR)   (*(PTR) = 0)
 
#define CPU_SET(N, PTR)   (*(PTR) = (N))
 
#define pthread_attr_setaffinity_np(ATTR, SZ, PTR)   setaffinity(ATTR, SZ, PTR)
 
#define sched_setaffinity(A, SZ, PTR)   setaffinity(A, SZ, PTR)
 

Typedefs

typedef int cpu_set_t
 

Detailed Description

Affinity methods on Mac OS X. Mac OS X does not export interfaces that identify processors or control thread placement – explicit thread to processor binding is not supported. So this is just a place holder to compile in Mac OS, experiments should be run in Linux.

Author
Cagri Balkesen cagri.nosp@m..bal.nosp@m.kesen.nosp@m.@inf.nosp@m..ethz.nosp@m..ch
Date
Wed Aug 1 14:26:56 2012
Version
Id
affinity.h 3017 2012-12-07 10:56:20Z bcagri

(c) 2012, ETH Zurich, Systems Group

Definition in file affinity.h.

Macro Definition Documentation

◆ CPU_SET

#define CPU_SET (   N,
  PTR 
)    (*(PTR) = (N))

Definition at line 27 of file affinity.h.

◆ CPU_ZERO

#define CPU_ZERO (   PTR)    (*(PTR) = 0)

Definition at line 26 of file affinity.h.

◆ pthread_attr_setaffinity_np

#define pthread_attr_setaffinity_np (   ATTR,
  SZ,
  PTR 
)    setaffinity(ATTR, SZ, PTR)

Definition at line 28 of file affinity.h.

◆ sched_setaffinity

#define sched_setaffinity (   A,
  SZ,
  PTR 
)    setaffinity(A, SZ, PTR)

Definition at line 29 of file affinity.h.

Typedef Documentation

◆ cpu_set_t

typedef int cpu_set_t

Definition at line 31 of file affinity.h.