#include <mySharedAllocator.h>
Public Types | |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
| typedef void * | pointer |
Public Methods | |
: incorect usage of the class mySharedMemoryAllocator | |
| mySharedAllocator () throw () | |
| construtor | |
| mySharedAllocator (const mySharedAllocator &) throw () | |
| copy constructor | |
| ~mySharedAllocator () throw () | |
| destructor | |
Static Public Methods | |
| pointer | allocate (size_type n, const void *=0) |
| allocate memory | |
| void | deallocate (pointer p, size_type n) |
| free memory | |
Definition at line 27 of file mySharedAllocator.h.
|
|
Definition at line 30 of file mySharedAllocator.h. |
|
|
Definition at line 31 of file mySharedAllocator.h. Referenced by allocate(), and deallocate(). |
|
|
Definition at line 29 of file mySharedAllocator.h. Referenced by allocate(), and deallocate(). |
|
|
construtor
|
|
|
copy constructor
|
|
|
destructor
|
|
||||||||||||
|
allocate memory
Definition at line 44 of file mySharedAllocator.h. References PsnSharedMemoryManager::lockIfNeeded(), PsnSharedMemoryManager::mmalloc(), pointer, size_type, PsMomeController::STLSharedMemoryManager, and PsnSharedMemoryManager::unlockIfNeeded().
00044 {
00045 PsnSharedMemoryManager * STLManager = PsMomeController::STLSharedMemoryManager;
00046 STLManager->lockIfNeeded();
00047 pointer resul(STLManager->mmalloc(n));
00048 STLManager->unlockIfNeeded();
00049 return resul;
00050 }
|
|
||||||||||||
|
free memory
Definition at line 53 of file mySharedAllocator.h. References PsnSharedMemoryManager::lockIfNeeded(), PsnSharedMemoryManager::mfree(), pointer, size_type, PsMomeController::STLSharedMemoryManager, and PsnSharedMemoryManager::unlockIfNeeded().
00053 {
00054 PsnSharedMemoryManager * STLManager = PsMomeController::STLSharedMemoryManager;
00055 STLManager->lockIfNeeded();
00056 STLManager->mfree(p,n);
00057 STLManager->unlockIfNeeded();
00058 }
|
| Documentation generated on Mon Nov 25 15:26:14 2002 |
Generated with doxygen 1.2.12 by Dimitri van Heesch , 1997-2001 |