24 static NSMDataStore& getStore()
30 static NSMDataStore g_store;
34 unsigned short maxentries;
35 unsigned short nentries;
45 unsigned int revision;
59 bool isOpend() {
return m_buf != NULL; }
60 bool open(
unsigned short max = 0);
62 Entry* add(
unsigned int addr,
64 unsigned int revision,
65 const std::string& name,
66 const std::string& format,
69 Header* getHeader() {
return m_header; }
70 Entry* get(
const std::string& name);
71 Entry* get(
unsigned int id);
72 Entry* get(
unsigned int addr,
unsigned int rid);
73 void lock() { m_mutex.lock(); }
74 void unlock() { m_mutex.unlock(); }
77 return m_cond.wait(m_mutex, second, 0);
79 void signal() { m_cond.broadcast(); }