diff --git a/NEWS b/NEWS index 7ce9ea69..72a7e07c 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,12 @@ * The following DRAFT APIs have been marked as STABLE and will not change anymore: - ZMQ_MSG_T_SIZE context option (see doc/zmq_ctx_get.txt) + - ZMQ_THREAD_AFFINITY_CPU_ADD and ZMQ_THREAD_AFFINITY_CPU_REMOVE (Posix only) + context options, to add/remove CPUs to the affinity set of the I/O threads. + See doc/zmq_ctx_set.txt and doc/zmq_ctx_get.txt for details. + - ZMQ_THREAD_NAME_PREFIX (Posix only) context option, to add a specific + integer prefix to the background threads names, to easily identify them. + See doc/zmq_ctx_set.txt and doc/zmq_ctx_get.txt for details. - ZMQ_GSSAPI_PRINCIPAL_NAMETYPE and ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE socket options, for the corresponding GSSAPI features. Additional definitions for principal name types: diff --git a/include/zmq.h b/include/zmq.h index 27107376..55973f34 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -216,6 +216,9 @@ ZMQ_EXPORT void zmq_version (int *major_, int *minor_, int *patch_); #define ZMQ_THREAD_SCHED_POLICY 4 #define ZMQ_MAX_MSGSZ 5 #define ZMQ_MSG_T_SIZE 6 +#define ZMQ_THREAD_AFFINITY_CPU_ADD 7 +#define ZMQ_THREAD_AFFINITY_CPU_REMOVE 8 +#define ZMQ_THREAD_NAME_PREFIX 9 /* Default for new contexts */ #define ZMQ_IO_THREADS_DFLT 1 @@ -653,9 +656,6 @@ ZMQ_EXPORT void zmq_threadclose (void *thread_); #define ZMQ_ROUTER_NOTIFY 97 /* DRAFT Context options */ -#define ZMQ_THREAD_AFFINITY_CPU_ADD 7 -#define ZMQ_THREAD_AFFINITY_CPU_REMOVE 8 -#define ZMQ_THREAD_NAME_PREFIX 9 #define ZMQ_ZERO_COPY_RECV 10 /* DRAFT Socket methods. */ diff --git a/src/zmq_draft.h b/src/zmq_draft.h index ab18a59f..5fc57613 100644 --- a/src/zmq_draft.h +++ b/src/zmq_draft.h @@ -58,9 +58,6 @@ unsigned long zmq_stopwatch_intermediate (void *watch_); #define ZMQ_ROUTER_NOTIFY 97 /* DRAFT Context options */ -#define ZMQ_THREAD_AFFINITY_CPU_ADD 7 -#define ZMQ_THREAD_AFFINITY_CPU_REMOVE 8 -#define ZMQ_THREAD_NAME_PREFIX 9 #define ZMQ_ZERO_COPY_RECV 10 /* DRAFT Socket methods. */