Skip to content

Commit 4a3c9ef

Browse files
author
Amanda Butler
authored
Copy edit MemoryPool.h
Copy edit file for active voice.
1 parent d4b3da6 commit 4a3c9ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rtos/MemoryPool.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
5252
public:
5353
/** Create and Initialize a memory pool.
5454
*
55-
* @note This function cannot be called from ISR context.
55+
* @note You cannot call this function from ISR context.
5656
*/
5757
MemoryPool() {
5858
memset(_pool_mem, 0, sizeof(_pool_mem));
@@ -68,7 +68,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
6868

6969
/** Destroy a memory pool
7070
*
71-
* @note This function cannot be called from ISR context.
71+
* @note You cannot call this function from ISR context.
7272
*/
7373
~MemoryPool() {
7474
osMemoryPoolDelete(_id);
@@ -77,7 +77,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
7777
/** Allocate a memory block of type T from a memory pool.
7878
@return address of the allocated memory block or NULL in case of no memory available.
7979
80-
@note This function may be called from ISR context.
80+
@note You may call this function from ISR context.
8181
*/
8282
T* alloc(void) {
8383
return (T*)osMemoryPoolAlloc(_id, 0);
@@ -86,7 +86,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
8686
/** Allocate a memory block of type T from a memory pool and set memory block to zero.
8787
@return address of the allocated memory block or NULL in case of no memory available.
8888
89-
@note This function may be called from ISR context.
89+
@note You may call this function from ISR context.
9090
*/
9191
T* calloc(void) {
9292
T *item = (T*)osMemoryPoolAlloc(_id, 0);
@@ -102,7 +102,7 @@ class MemoryPool : private mbed::NonCopyable<MemoryPool<T, pool_sz> > {
102102
is NULL or invalid, or osErrorResource if given memory block is in an
103103
invalid memory pool state.
104104
105-
@note This function may be called from ISR context.
105+
@note You may call this function from ISR context.
106106
*/
107107
osStatus free(T *block) {
108108
return osMemoryPoolFree(_id, (void*)block);

0 commit comments

Comments
 (0)