summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/os/unix/ngx_setaffinity.h
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2012-05-13 09:14:58 +0000
committerrobert <robert@openbsd.org>2012-05-13 09:14:58 +0000
commit97af15d31a3e788ae1f3063c72204f69e2e38dde (patch)
tree40613faa9ab41a3bffd46e7d418c97f022706db8 /usr.sbin/nginx/src/os/unix/ngx_setaffinity.h
parentRemove unused and confusing 'head' argument. (diff)
downloadwireguard-openbsd-97af15d31a3e788ae1f3063c72204f69e2e38dde.tar.xz
wireguard-openbsd-97af15d31a3e788ae1f3063c72204f69e2e38dde.zip
update to nginx-1.2.0
Diffstat (limited to 'usr.sbin/nginx/src/os/unix/ngx_setaffinity.h')
-rw-r--r--usr.sbin/nginx/src/os/unix/ngx_setaffinity.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr.sbin/nginx/src/os/unix/ngx_setaffinity.h b/usr.sbin/nginx/src/os/unix/ngx_setaffinity.h
new file mode 100644
index 00000000000..33f5835dee6
--- /dev/null
+++ b/usr.sbin/nginx/src/os/unix/ngx_setaffinity.h
@@ -0,0 +1,23 @@
+
+/*
+ * Copyright (C) Nginx, Inc.
+ */
+
+#ifndef _NGX_SETAFFINITY_H_INCLUDED_
+#define _NGX_SETAFFINITY_H_INCLUDED_
+
+
+#if (NGX_HAVE_SCHED_SETAFFINITY || NGX_HAVE_CPUSET_SETAFFINITY)
+
+#define NGX_HAVE_CPU_AFFINITY 1
+
+void ngx_setaffinity(uint64_t cpu_affinity, ngx_log_t *log);
+
+#else
+
+#define ngx_setaffinity(cpu_affinity, log)
+
+#endif
+
+
+#endif /* _NGX_SETAFFINITY_H_INCLUDED_ */