A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::service::Service::State Struct Reference

Public Member Functions

bool accepting ABSL_GUARDED_BY (mu)
 
std::shared_ptr< actions::ActionRegistry > registry ABSL_GUARDED_BY (mu)
 
OnServiceConnection on_connection ABSL_GUARDED_BY (mu)
 
absl::flat_hash_map< std::string, std::shared_ptr< Session > > sessions ABSL_GUARDED_BY (mu)
 
absl::flat_hash_map< std::string, std::string > stream_to_session ABSL_GUARDED_BY (mu)
 
void Unregister (const std::string &session_id)
 

Public Attributes

thread::Mutex mu
 
thread::CondVar idle
 
ServiceOptions options
 

Member Function Documentation

◆ ABSL_GUARDED_BY() [1/5]

bool accepting a11::service::Service::State::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [2/5]

std::shared_ptr< actions::ActionRegistry > registry a11::service::Service::State::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [3/5]

OnServiceConnection on_connection a11::service::Service::State::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [4/5]

absl::flat_hash_map< std::string, std::shared_ptr< Session > > sessions a11::service::Service::State::ABSL_GUARDED_BY ( mu  )

◆ ABSL_GUARDED_BY() [5/5]

absl::flat_hash_map< std::string, std::string > stream_to_session a11::service::Service::State::ABSL_GUARDED_BY ( mu  )

◆ Unregister()

void a11::service::Service::State::Unregister ( const std::string &  session_id)
inline

Member Data Documentation

◆ idle

thread::CondVar a11::service::Service::State::idle
mutable

◆ mu

thread::Mutex a11::service::Service::State::mu
mutable

◆ options

ServiceOptions a11::service::Service::State::options

The documentation for this struct was generated from the following file: