mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-08 14:56:14 +01:00
Problem: ZMQ_SOCKET_LIMIT and ZMQ_THREAD_PRIORITY have the same value
Solution: remove documents and tests for ZMQ_THREAD_PRIORITY getter. It never worked and can never work as it has the same value as a get-only option ZMQ_SOCKET_LIMIT. It cannot be changed without breaking ABI. Note that the setter works fine as ZMQ_SOCKET_LIMIT is get-only.
This commit is contained in:
@@ -469,10 +469,7 @@ int zmq::thread_ctx_t::set (int option_, int optval_)
|
||||
int zmq::thread_ctx_t::get (int option_)
|
||||
{
|
||||
int rc = 0;
|
||||
if (option_ == ZMQ_THREAD_PRIORITY) {
|
||||
scoped_lock_t locker (_opt_sync);
|
||||
rc = _thread_priority;
|
||||
} else if (option_ == ZMQ_THREAD_SCHED_POLICY) {
|
||||
if (option_ == ZMQ_THREAD_SCHED_POLICY) {
|
||||
scoped_lock_t locker (_opt_sync);
|
||||
rc = _thread_sched_policy;
|
||||
} else if (option_ == ZMQ_THREAD_NAME_PREFIX) {
|
||||
|
||||
Reference in New Issue
Block a user