# | Line 12 | Line 12 | |
---|---|---|
12 | class Publisher | |
13 | { | |
14 | private: | |
15 | < | // |
15 | > | bool start; |
16 | > | api::Thread publisher; |
17 | > | int publish(const std::set<Buddy>& buddies); |
18 | public: | |
19 | < | Publisher(const std::set<Buddy>& buddies); |
20 | < | ~Publisher() {} |
19 | > | Publisher(const std::set<Buddy>& buddies, bool start); |
20 | > | ~Publisher() { if (start) publisher.Join(); } |
21 | // | |
22 | }; | |
23 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |