6 |
|
|
7 |
|
#include "Publisher.hpp" |
8 |
|
|
9 |
< |
Publisher::Publisher(const std::set<Buddy>& buddies, bool start) : start(start) |
9 |
> |
Publisher::Publisher(const std::set<Buddy>& buddies, const Database& database, |
10 |
> |
bool start) : buddies(buddies), database(database), start(start) |
11 |
|
{ |
12 |
|
if (start) |
13 |
|
{ |
14 |
< |
publisher.Spawn(etl::BindAll(&Publisher::publish, this, buddies)); |
14 |
> |
publisher.Spawn(etl::Bind<0>(&Publisher::publish, this)); |
15 |
|
} |
16 |
|
} |
17 |
|
|
18 |
< |
int Publisher::publish(const std::set<Buddy>& buddies) |
18 |
> |
int Publisher::publish() |
19 |
|
{ |
20 |
|
cerr << "Publisher::publish()\n"; |
21 |
|
|