You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some case (like logging and run-time monitoring) may be useful to have a possibility to specify a name for an agent. That name has to be stored inside so_5::agent_t and should be available via a pointer/reference to so_5::agent_t.
The text was updated successfully, but these errors were encountered:
If the name is not specified in the constructor (via modificators for context_t object) then agent_t::m_agent_name will be nullptr. And agent_t::so_agent_name() will return an instance of anonymous_agent_id_t where m_ptr_as_id will hold a string representation of agent's this pointer.
If the name is specified, then agent_t::m_agent_name will contain a copy of name inside, and agent_t::so_agent_name() will return named_agent_id_t that references this name.
So if the name is not used the space penalty will be just sizeof(std::unique_ptr<char[]>) (8 bytes for 64-bit platform).
For some case (like logging and run-time monitoring) may be useful to have a possibility to specify a name for an agent. That name has to be stored inside
so_5::agent_t
and should be available via a pointer/reference toso_5::agent_t
.The text was updated successfully, but these errors were encountered: