comparison packages/services/memalloc/common/current/include/memfixed.hxx @ 165:d63db767121d

Merge from eCos master repository on 2001-06-29-06:43:03-BST
author jlarmour
date Fri, 29 Jun 2001 07:16:25 +0000
parents 6ed91473a1cd
children e0c0827131d1
comparison
equal deleted inserted replaced
164:f7999c3a5f21 165:d63db767121d
91 91
92 // Constructor: gives the base and size of the arena in which memory is 92 // Constructor: gives the base and size of the arena in which memory is
93 // to be carved out, note that management structures are taken from the 93 // to be carved out, note that management structures are taken from the
94 // same arena. Alloc_unit is the blocksize allocated. 94 // same arena. Alloc_unit is the blocksize allocated.
95 Cyg_Mempool_Fixed( 95 Cyg_Mempool_Fixed(
96 cyg_uint8 *base, 96 cyg_uint8 * /* base */,
97 cyg_int32 size, 97 cyg_int32 /* size */,
98 CYG_ADDRWORD alloc_unit ); 98 CYG_ADDRWORD /* alloc_unit */ );
99 99
100 // Destructor 100 // Destructor
101 ~Cyg_Mempool_Fixed(); 101 ~Cyg_Mempool_Fixed();
102 102
103 #ifdef CYGSEM_MEMALLOC_ALLOCATOR_FIXED_THREADAWARE 103 #ifdef CYGSEM_MEMALLOC_ALLOCATOR_FIXED_THREADAWARE
104 // get some memory; wait if none available 104 // get some memory; wait if none available
105 cyg_uint8 *alloc(); 105 cyg_uint8 *alloc();
106 106
107 # ifdef CYGFUN_KERNEL_THREADS_TIMER 107 # ifdef CYGFUN_KERNEL_THREADS_TIMER
108 // get some memory with a timeout 108 // get some memory with a timeout
109 cyg_uint8 *alloc( cyg_tick_count delay_timeout ); 109 cyg_uint8 *alloc( cyg_tick_count /* delay_timeout */ );
110 # endif 110 # endif
111 #endif 111 #endif
112 112
113 // get some memory, return NULL if none available 113 // get some memory, return NULL if none available
114 cyg_uint8 *try_alloc(); 114 cyg_uint8 *try_alloc();
116 // supposedly resize existing allocation. This is defined in the 116 // supposedly resize existing allocation. This is defined in the
117 // fixed block allocator purely for API consistency. It will return 117 // fixed block allocator purely for API consistency. It will return
118 // an error (false) for all values, except for the blocksize 118 // an error (false) for all values, except for the blocksize
119 // returns true on success 119 // returns true on success
120 cyg_uint8 * 120 cyg_uint8 *
121 resize_alloc( cyg_uint8 *alloc_ptr, cyg_int32 newsize, 121 resize_alloc( cyg_uint8 * /* alloc_ptr */, cyg_int32 /* newsize */,
122 cyg_int32 *oldsize=NULL ); 122 cyg_int32 * /* oldsize */ =NULL );
123 123
124 // free the memory back to the pool 124 // free the memory back to the pool
125 cyg_bool free( cyg_uint8 *p ); 125 cyg_bool free( cyg_uint8 * /* p */ );
126 126
127 // Get memory pool status 127 // Get memory pool status
128 // flags is a bitmask of requested fields to fill in. The flags are 128 // flags is a bitmask of requested fields to fill in. The flags are
129 // defined in common.hxx 129 // defined in common.hxx
130 void get_status( cyg_mempool_status_flag_t /* flags */, 130 void get_status( cyg_mempool_status_flag_t /* flags */,