DrivenEngine channels are now shared_ptr

This commit is contained in:
2022-01-05 12:50:16 -05:00
parent 6b23651606
commit c733023823
7 changed files with 103 additions and 87 deletions

View File

@@ -10,7 +10,7 @@
class Client {
public:
int64_t actor_id_;
UniqueChannel channel_;
SharedChannel channel_;
UniqueWorld sync_;
};
using UniqueClient = std::unique_ptr<Client>;
@@ -151,7 +151,7 @@ public:
// Check for new incoming channels, set up client structures.
while (true) {
UniqueChannel chan = new_incoming_channel();
SharedChannel chan = new_incoming_channel();
if (chan == nullptr) break;
Client *client = new Client;
client->actor_id_ = master_->create_login_actor();