File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ matrix:
49
49
# GCC default, draft disabled, default libzmq (defined in ci_build.sh)
50
50
- os : linux
51
51
52
- # GCC 6, draft disabled (default), latest libzmq (default)
52
+ # GCC 6, draft disabled (default), older libzmq
53
53
- os : linux
54
54
addons :
55
55
apt :
@@ -58,7 +58,7 @@ matrix:
58
58
packages :
59
59
- g++-6
60
60
env :
61
- - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
61
+ - ZMQ_VERSION=4.2.5 MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
62
62
63
63
# GCC 4.9, draft disabled (default), latest libzmq (default)
64
64
- os : linux
Original file line number Diff line number Diff line change @@ -67,9 +67,11 @@ TEST_CASE("context - use socket after shutdown", "[context]")
67
67
TEST_CASE (" context set/get options" , " [context]" )
68
68
{
69
69
zmq::context_t context;
70
+ #if defined(ZMQ_BLOCKY) && defined(ZMQ_IO_THREADS)
70
71
context.set (zmq::ctxopt::blocky, false );
71
72
context.set (zmq::ctxopt::io_threads, 5 );
72
73
CHECK (context.get (zmq::ctxopt::io_threads) == 5 );
74
+ #endif
73
75
74
76
CHECK_THROWS_AS (
75
77
context.set (static_cast <zmq::ctxopt>(-42 ), 5 ),
Original file line number Diff line number Diff line change @@ -635,21 +635,45 @@ inline void swap(message_t &a, message_t &b) ZMQ_NOTHROW
635
635
#ifdef ZMQ_CPP11
636
636
enum class ctxopt
637
637
{
638
+ #ifdef ZMQ_BLOCKY
638
639
blocky = ZMQ_BLOCKY,
640
+ #endif
641
+ #ifdef ZMQ_IO_THREADS
639
642
io_threads = ZMQ_IO_THREADS,
643
+ #endif
644
+ #ifdef ZMQ_THREAD_SCHED_POLICY
640
645
thread_sched_policy = ZMQ_THREAD_SCHED_POLICY,
646
+ #endif
647
+ #ifdef ZMQ_THREAD_PRIORITY
641
648
thread_priority = ZMQ_THREAD_PRIORITY,
649
+ #endif
650
+ #ifdef ZMQ_THREAD_AFFINITY_CPU_ADD
642
651
thread_affinity_cpu_add = ZMQ_THREAD_AFFINITY_CPU_ADD,
652
+ #endif
653
+ #ifdef ZMQ_THREAD_AFFINITY_CPU_REMOVE
643
654
thread_affinity_cpu_remove = ZMQ_THREAD_AFFINITY_CPU_REMOVE,
655
+ #endif
656
+ #ifdef ZMQ_THREAD_NAME_PREFIX
644
657
thread_name_prefix = ZMQ_THREAD_NAME_PREFIX,
658
+ #endif
659
+ #ifdef ZMQ_MAX_MSGSZ
645
660
max_msgsz = ZMQ_MAX_MSGSZ,
661
+ #endif
646
662
#ifdef ZMQ_ZERO_COPY_RECV
647
663
zero_copy_recv = ZMQ_ZERO_COPY_RECV,
648
664
#endif
665
+ #ifdef ZMQ_MAX_SOCKETS
649
666
max_sockets = ZMQ_MAX_SOCKETS,
667
+ #endif
668
+ #ifdef ZMQ_SOCKET_LIMIT
650
669
socket_limit = ZMQ_SOCKET_LIMIT,
670
+ #endif
671
+ #ifdef ZMQ_IPV6
651
672
ipv6 = ZMQ_IPV6,
673
+ #endif
674
+ #ifdef ZMQ_MSG_T_SIZE
652
675
msg_t_size = ZMQ_MSG_T_SIZE
676
+ #endif
653
677
};
654
678
#endif
655
679
You can’t perform that action at this time.
0 commit comments