26 {
return m_slist.m_sessions;
31 { m_slist.m_lock.unlock();
37 { m_slist.m_lock.lock();
43 typedef std::unique_ptr<SessionList::ListKey> KeyPtr;
47 {
return KeyPtr(
new ListKey(*
this));
52 std::list<Session *> m_sessions;
A class that enforces serialized access to a list.
Definition: sessionList.h:21
~ListKey(void)
Destroy the key, which releases the lock.
Definition: sessionList.h:30
std::list< Session * > & GetList(void)
Get the list of session (and don't save the reference).
Definition: sessionList.h:25
Serialized use of a collection of sessions.
Definition: sessionList.h:18
KeyPtr TakeList(void)
Get the list serialization key.
Definition: sessionList.h:46
Manage one connection session with a client.
Definition: session.h:23