Maintains a current integer assigned to a name (connections).
More...
#include <connection_collection.h>
Maintains a current integer assigned to a name (connections).
Definition at line 15 of file connection_collection.h.
◆ Connection
◆ AquireConnection()
Definition at line 12 of file connection_collection.mm.
12 {
14 connections_[
name] = nextConnection;
15 return nextConnection;
16}
DEF_SWITCHES_START aot vmservice shared library name
◆ CleanupConnection()
- Returns
- the name of the channel when cleanup is successful, otherwise the empty string.
Definition at line 18 of file connection_collection.mm.
18 {
19 if (connection > 0) {
20 std::string channel;
21 for (auto& keyValue : connections_) {
22 if (keyValue.second == connection) {
23 channel = keyValue.first;
24 break;
25 }
26 }
27 if (channel.length() > 0) {
28 connections_.erase(channel);
29 return channel;
30 }
31 }
32 return "";
33}
◆ IsValidConnection()
◆ MakeErrorConnection()
Definition at line 39 of file connection_collection.mm.
39 {
40 if (errCode < 0) {
41 return -1 * errCode;
42 }
43 return errCode;
44}
◆ kInvalidConnection
const Connection flutter::ConnectionCollection::kInvalidConnection = 0 |
|
static |
The documentation for this class was generated from the following files: