0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 07:31:03 +08:00

Merge pull request #3287 from bluca/radix_draft

Problem: new radix tree implementation is experimental
This commit is contained in:
Simon Giesecke 2018-11-01 11:04:15 +01:00 committed by GitHub
commit efc9a3021f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,11 @@
#include "session_base.hpp"
#include "dist.hpp"
#include "fq.hpp"
#ifdef ZMQ_BUILD_DRAFT_API
#include "radix_tree.hpp"
#else
#include "trie.hpp"
#endif
namespace zmq
{
@ -78,7 +82,11 @@ class xsub_t : public socket_base_t
dist_t _dist;
// The repository of subscriptions.
#ifdef ZMQ_BUILD_DRAFT_API
radix_tree _subscriptions;
#else
trie_t _subscriptions;
#endif
// If true, 'message' contains a matching message to return on the
// next recv call.