-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,19 @@ | |
* Copyright (C) lhanjian ([email protected]) | ||
*/ | ||
|
||
#ifndef _NGX_SETAFFINITY_H_INCLUDED_ | ||
#define _NGX_SETAFFINITY_H_INCLUDED_ | ||
#ifndef _NGX_GETAFFINITY_H_INCLUDED_ | ||
#define _NGX_GETAFFINITY_H_INCLUDED_ | ||
|
||
|
||
#if (NGX_HAVE_SCHED_SETAFFINITY) | ||
|
||
#define NGX_HAVE_CPU_AFFINITY 1 | ||
#if (T_NGX_HAVE_SCHED_GETAFFINITY) | ||
|
||
typedef cpu_set_t ngx_cpuset_t; | ||
|
||
void ngx_setaffinity(ngx_cpuset_t *cpu_affinity, ngx_log_t *log); | ||
void ngx_getaffinity(ngx_cpuset_t *cpu_affinity, ngx_log_t *log); | ||
|
||
#else | ||
|
||
#define ngx_setaffinity(cpu_affinity, log) | ||
#define ngx_getaffinity(cpu_affinity, log) | ||
|
||
typedef uint64_t ngx_cpuset_t; | ||
|
||
|