Skip to content

Commit

Permalink
Necessary to compile on OS X
Browse files Browse the repository at this point in the history
 because OS X doesn't have a function for cpu affinity
  • Loading branch information
stefanocoding committed Dec 16, 2015
1 parent c828771 commit c825dea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ static void affine_to_cpu_mask(int id, uint8_t mask) {
}
cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, -1, sizeof(cpuset_t), &set);
}
#elif defined(__APPLE__)
static inline void drop_policy(void) { }
static void affine_to_cpu_mask(int id, uint8_t mask) {}
#else /* Windows */
static inline void drop_policy(void) { }
static void affine_to_cpu_mask(int id, uint8_t mask) {
Expand Down

0 comments on commit c825dea

Please sign in to comment.