Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
null_shared_mem.h
Go to the documentation of this file.
1 // Copyright 2011 Google Inc.
16 
17 #ifndef PAGESPEED_KERNEL_BASE_NULL_SHARED_MEM_H_
18 #define PAGESPEED_KERNEL_BASE_NULL_SHARED_MEM_H_
19 
20 #include <cstddef>
24 
25 namespace net_instaweb {
26 
27 class MessageHandler;
28 
32  public:
33  NullSharedMem();
34  virtual ~NullSharedMem();
35 
36  virtual size_t SharedMutexSize() const;
37 
39  const GoogleString& name, size_t size, MessageHandler* handler);
40 
44  const GoogleString& name, size_t size, MessageHandler* handler);
45 
46  virtual void DestroySegment(const GoogleString& name,
47  MessageHandler* handler);
48 
50  virtual bool IsDummy() { return true; }
51 
52  private:
53 
54 };
55 
56 }
57 
58 #endif
Definition: null_shared_mem.h:31
virtual AbstractSharedMemSegment * AttachToSegment(const GoogleString &name, size_t size, MessageHandler *handler)
virtual AbstractSharedMemSegment * CreateSegment(const GoogleString &name, size_t size, MessageHandler *handler)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: abstract_shared_mem.h:86
virtual bool IsDummy()
Does not actually support any operations.
Definition: null_shared_mem.h:50
Definition: message_handler.h:39
virtual void DestroySegment(const GoogleString &name, MessageHandler *handler)
Definition: abstract_shared_mem.h:31
virtual size_t SharedMutexSize() const
Size of mutexes inside shared memory segments.