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:
commit
efc9a3021f
@ -34,7 +34,11 @@
|
|||||||
#include "session_base.hpp"
|
#include "session_base.hpp"
|
||||||
#include "dist.hpp"
|
#include "dist.hpp"
|
||||||
#include "fq.hpp"
|
#include "fq.hpp"
|
||||||
|
#ifdef ZMQ_BUILD_DRAFT_API
|
||||||
#include "radix_tree.hpp"
|
#include "radix_tree.hpp"
|
||||||
|
#else
|
||||||
|
#include "trie.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
{
|
{
|
||||||
@ -78,7 +82,11 @@ class xsub_t : public socket_base_t
|
|||||||
dist_t _dist;
|
dist_t _dist;
|
||||||
|
|
||||||
// The repository of subscriptions.
|
// The repository of subscriptions.
|
||||||
|
#ifdef ZMQ_BUILD_DRAFT_API
|
||||||
radix_tree _subscriptions;
|
radix_tree _subscriptions;
|
||||||
|
#else
|
||||||
|
trie_t _subscriptions;
|
||||||
|
#endif
|
||||||
|
|
||||||
// If true, 'message' contains a matching message to return on the
|
// If true, 'message' contains a matching message to return on the
|
||||||
// next recv call.
|
// next recv call.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user