@@ -77,7 +77,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
7777 }
7878
7979 /* * Allocate a memory block from a memory pool, without blocking.
80- @return address of the allocated memory block or NULL in case of no memory available.
80+ @return address of the allocated memory block or nullptr in case of no memory available.
8181
8282 @note You may call this function from ISR context.
8383 */
@@ -88,7 +88,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
8888
8989 /* * Allocate a memory block from a memory pool, optionally blocking.
9090 @param millisec timeout value (osWaitForever to wait forever)
91- @return address of the allocated memory block or NULL in case of no memory available.
91+ @return address of the allocated memory block or nullptr in case of no memory available.
9292
9393 @note You may call this function from ISR context if the millisec parameter is set to 0.
9494 */
@@ -99,7 +99,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
9999
100100 /* * Allocate a memory block from a memory pool, blocking.
101101 @param millisec absolute timeout time, referenced to Kernel::get_ms_count().
102- @return address of the allocated memory block or NULL in case of no memory available.
102+ @return address of the allocated memory block or nullptr in case of no memory available.
103103
104104 @note You cannot call this function from ISR context.
105105 @note the underlying RTOS may have a limit to the maximum wait time
@@ -122,37 +122,37 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
122122 }
123123
124124 /* * Allocate a memory block from a memory pool, without blocking, and set memory block to zero.
125- @return address of the allocated memory block or NULL in case of no memory available.
125+ @return address of the allocated memory block or nullptr in case of no memory available.
126126
127127 @note You may call this function from ISR context.
128128 */
129129 T *calloc (void )
130130 {
131131 T *item = alloc ();
132- if (item != NULL ) {
132+ if (item != nullptr ) {
133133 memset (item, 0 , sizeof (T));
134134 }
135135 return item;
136136 }
137137
138138 /* * Allocate a memory block from a memory pool, optionally blocking, and set memory block to zero.
139139 @param millisec timeout value (osWaitForever to wait forever)
140- @return address of the allocated memory block or NULL in case of no memory available.
140+ @return address of the allocated memory block or nullptr in case of no memory available.
141141
142142 @note You may call this function from ISR context if the millisec parameter is set to 0.
143143 */
144144 T *calloc_for (uint32_t millisec)
145145 {
146146 T *item = alloc_for (millisec);
147- if (item != NULL ) {
147+ if (item != nullptr ) {
148148 memset (item, 0 , sizeof (T));
149149 }
150150 return item;
151151 }
152152
153153 /* * Allocate a memory block from a memory pool, blocking, and set memory block to zero.
154154 @param millisec absolute timeout time, referenced to Kernel::get_ms_count().
155- @return address of the allocated memory block or NULL in case of no memory available.
155+ @return address of the allocated memory block or nullptr in case of no memory available.
156156
157157 @note You cannot call this function from ISR context.
158158 @note the underlying RTOS may have a limit to the maximum wait time
@@ -163,7 +163,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
163163 T *calloc_until (uint64_t millisec)
164164 {
165165 T *item = alloc_until (millisec);
166- if (item != NULL ) {
166+ if (item != nullptr ) {
167167 memset (item, 0 , sizeof (T));
168168 }
169169 return item;
@@ -172,7 +172,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
172172 /* * Free a memory block.
173173 @param block address of the allocated memory block to be freed.
174174 @return osOK on successful deallocation, osErrorParameter if given memory block id
175- is NULL or invalid, or osErrorResource if given memory block is in an
175+ is nullptr or invalid, or osErrorResource if given memory block is in an
176176 invalid memory pool state.
177177
178178 @note You may call this function from ISR context.
0 commit comments