|
Revision 2828, 2.7 kB
(checked in by patrickh, 8 years ago)
|
Updated the copyright to what ISU's lawyers decided they want now.
The vast majority of this was done using Kevin's auto-copyright.pl script
which definitely made this easier. All the copyright blocks now have
begin and end tags so that if and when we have to update the copyright
information again, it will be even simpler.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
#ifndef _MemPool_h_ |
|---|
| 35 |
#define _MemPool_h_ |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
#include <vjConfig.h> |
|---|
| 39 |
#include <stdlib.h> |
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
class vjMemPool { |
|---|
| 52 |
|
|---|
| 53 |
public: |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
virtual ~vjMemPool() {;} |
|---|
| 57 |
|
|---|
| 58 |
public: |
|---|
| 59 |
virtual void* allocate(size_t size) = 0; |
|---|
| 60 |
virtual void deallocate(void* ptr) = 0; |
|---|
| 61 |
virtual void* reallocate(void *ptr, size_t new_sz) = 0; |
|---|
| 62 |
|
|---|
| 63 |
}; |
|---|
| 64 |
|
|---|
| 65 |
#if defined(VJ_IRIX_SPROC) |
|---|
| 66 |
# include <SharedMem/vjMemPoolSGI.h> |
|---|
| 67 |
# include <SharedMem/vjMemPoolHeap.h> |
|---|
| 68 |
|
|---|
| 69 |
typedef vjMemPoolSGI vjSharedPool; |
|---|
| 70 |
typedef vjMemPoolHeap vjHeapPool; |
|---|
| 71 |
typedef vjMemPoolSGI vjSyncPool; |
|---|
| 72 |
#elif defined(VJ_OS_Win32) |
|---|
| 73 |
# include <SharedMem/vjMemPoolWin32.h> |
|---|
| 74 |
# include <SharedMem/vjMemPoolHeap.h> |
|---|
| 75 |
|
|---|
| 76 |
typedef vjMemPoolHeap vjSharedPool; |
|---|
| 77 |
typedef vjMemPoolHeap vjHeapPool; |
|---|
| 78 |
typedef vjMemPoolHeap vjSyncPool; |
|---|
| 79 |
#elif defined(VJ_OS_HPUX) || defined(VJ_USE_PTHREADS) |
|---|
| 80 |
# include <SharedMem/vjMemPool_malloc.h> |
|---|
| 81 |
# include <SharedMem/vjMemPoolHeap.h> |
|---|
| 82 |
|
|---|
| 83 |
typedef vjMemPool_malloc vjSharedPool; |
|---|
| 84 |
typedef vjMemPoolHeap vjHeapPool; |
|---|
| 85 |
typedef vjMemPool_malloc vjSyncPool; |
|---|
| 86 |
#endif |
|---|
| 87 |
|
|---|
| 88 |
#endif // ifdef vjMemPool_h |
|---|