Change ZMQ_THREAD_AFFINITY to ZMQ_THREAD_AFFINITY_CPU_ADD/ZMQ_THREAD_AFFINITY_CPU_REMOVE. Avoid prefix thread names when no prefix was set.

This commit is contained in:
f18m
2017-10-25 09:55:47 +02:00
parent cb266ee073
commit 2aa0e6fd4d
8 changed files with 70 additions and 43 deletions

View File

@@ -214,7 +214,7 @@ namespace zmq
// Thread parameters.
int thread_priority;
int thread_sched_policy;
int thread_affinity;
std::set<int> thread_affinity_cpus;
std::string thread_name_prefix;
// Synchronisation of access to context options.