8 #include <boost/thread/mutex.hpp>
15 Session() : m_id(0){};
16 /// returns next id, global state of id protected by boost::mutex
17 long unsigned int id() {
18 boost::mutex::scoped_lock scoped_lock(m_mutex);
23 /// disabled because class is singleton
24 Session(const Session &);
26 /// disabled because class is singleton
27 Session& operator=(const Session &);
30 unsigned long int m_id;
42 * indent-tabs-mode: nil
44 * vim: shiftwidth=4 tabstop=8 expandtab