src/os/unix/ngx_setaffinity.h - nginx-1.7.10

Macros defined

Source code


  1. /*
  2. * Copyright (C) Nginx, Inc.
  3. */

  4. #ifndef _NGX_SETAFFINITY_H_INCLUDED_
  5. #define _NGX_SETAFFINITY_H_INCLUDED_


  6. #if (NGX_HAVE_SCHED_SETAFFINITY || NGX_HAVE_CPUSET_SETAFFINITY)

  7. #define NGX_HAVE_CPU_AFFINITY 1

  8. void ngx_setaffinity(uint64_t cpu_affinity, ngx_log_t *log);

  9. #else

  10. #define ngx_setaffinity(cpu_affinity, log)

  11. #endif


  12. #endif /* _NGX_SETAFFINITY_H_INCLUDED_ */