17 #ifndef PAGESPEED_KERNEL_THREAD_PTHREAD_SHARED_MEM_H_
18 #define PAGESPEED_KERNEL_THREAD_PTHREAD_SHARED_MEM_H_
28 namespace net_instaweb {
58 typedef std::map<GoogleString, std::pair<char*, size_t> > SegmentBaseMap;
61 static SegmentBaseMap* AcquireSegmentBases();
63 static void UnlockSegmentBases();
71 static SegmentBaseMap* segment_bases_;
74 static size_t s_instance_count_;
79 size_t instance_number_;
virtual size_t SharedMutexSize() const
Size of mutexes inside shared memory segments.
virtual void DestroySegment(const GoogleString &name, MessageHandler *handler)
virtual AbstractSharedMemSegment * CreateSegment(const GoogleString &name, size_t size, MessageHandler *handler)
Definition: pthread_shared_mem.h:38
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: abstract_shared_mem.h:86
virtual AbstractSharedMemSegment * AttachToSegment(const GoogleString &name, size_t size, MessageHandler *handler)
static void Terminate()
Frees all lazy-initialized memory used to track shared-memory segments.
Definition: message_handler.h:39
Definition: abstract_shared_mem.h:31