diff options
author | Fabien Ninoles <fabien@tzone.org> | 2011-05-23 21:36:00 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-05-23 21:36:00 +0200 |
commit | 71ac91ba4193910359d7671a4e998a17ff506b06 (patch) | |
tree | f04ea71713d06b6826d84a675f5e58c3acbe57a6 /src/pipe.hpp | |
parent | 0f6f7276e32c01ccfe86fb76741a52ac6ffc87af (diff) |
Add multi-array support to array_item_t.
Allow to have the same item part of two different arrays, as long as
they are using different array identifier.
Diffstat (limited to 'src/pipe.hpp')
-rw-r--r-- | src/pipe.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pipe.hpp b/src/pipe.hpp index fcba877..f821bdd 100644 --- a/src/pipe.hpp +++ b/src/pipe.hpp @@ -47,9 +47,15 @@ namespace zmq virtual void terminated (class pipe_t *pipe_) = 0; }; + // Note that pipe can be stored in three different arrays. + // The array of inbound pipes (1), the array of outbound pipes (2) and + // the generic array of pipes to deallocate (3). + class pipe_t : public object_t, - public array_item_t + public array_item_t <1>, + public array_item_t <2>, + public array_item_t <3> { // This allows pipepair to create pipe objects. friend int pipepair (class object_t *parents_ [2], |