Page Speed Optimization Libraries
1.13.35.1
|
#include "null_shared_mem.h"
Public Member Functions | |
virtual size_t | SharedMutexSize () const |
Size of mutexes inside shared memory segments. | |
virtual AbstractSharedMemSegment * | CreateSegment (const GoogleString &name, size_t size, MessageHandler *handler) |
virtual AbstractSharedMemSegment * | AttachToSegment (const GoogleString &name, size_t size, MessageHandler *handler) |
virtual void | DestroySegment (const GoogleString &name, MessageHandler *handler) |
virtual bool | IsDummy () |
Does not actually support any operations. | |
A stub implementation of shared memory for systems where we do not have a real one. Fails all the operations.
|
virtual |
Attaches to an existing segment, which must have been created already. May return NULL on failure
Implements net_instaweb::AbstractSharedMem.
|
virtual |
This should be called upon main process/thread initialization to create a shared memory segment that will be accessed by other processes/threads as identified by a unique name (via AttachToSegment). It will remove any previous segment with the same name. The memory will be zeroed out.
May return NULL on failure.
Implements net_instaweb::AbstractSharedMem.
|
virtual |
Cleans up the segment with given name. You should call this after there is no longer any need for AttachToSegment to succeed.
Implements net_instaweb::AbstractSharedMem.