Home | History | Annotate | Download | only in mac

Lines Matching defs:SharedMemory

27 #include "SharedMemory.h"
40 SharedMemory::Handle::Handle()
46 SharedMemory::Handle::~Handle()
52 bool SharedMemory::Handle::isNull() const
57 void SharedMemory::Handle::encode(CoreIPC::ArgumentEncoder* encoder) const
64 bool SharedMemory::Handle::decode(CoreIPC::ArgumentDecoder* decoder, Handle& handle)
92 PassRefPtr<SharedMemory> SharedMemory::create(size_t size)
113 RefPtr<SharedMemory> sharedMemory(adoptRef(new SharedMemory));
114 sharedMemory->m_size = size;
115 sharedMemory->m_data = toPointer(address);
116 sharedMemory->m_port = port;
118 return sharedMemory.release();
121 static inline vm_prot_t machProtection(SharedMemory::Protection protection)
124 case SharedMemory::ReadOnly:
126 case SharedMemory::ReadWrite:
134 PassRefPtr<SharedMemory> SharedMemory::create(const Handle& handle, Protection protection)
146 RefPtr<SharedMemory> sharedMemory(adoptRef(new SharedMemory));
147 sharedMemory->m_size = handle.m_size;
148 sharedMemory->m_data = toPointer(mappedAddress);
149 sharedMemory->m_port = MACH_PORT_NULL;
151 return sharedMemory.release();
154 SharedMemory::~SharedMemory()
167 bool SharedMemory::createHandle(Handle& handle, Protection protection)
197 unsigned SharedMemory::systemPageSize()