-
Notifications
You must be signed in to change notification settings - Fork 3k
Mail/MemoryPool: blocking alloc #10225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8d4000e
to
86e177f
Compare
@kjbracey-arm, thank you for your changes. |
4a6741c
to
8f1dcff
Compare
} | ||
|
||
/** Allocate a memory block from a memory pool, optionally blocking, and set memory block to zero. | ||
@return address of the allocated memory block or NULL in case of no memory available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to add the description of millisec parameter here as well
@param millisec timeout value (osWaitForever to wait forever)
Mail and MemoryPool did not permit access to the blocking form of allocation available in CMSIS-RTOS 2 - give them new blocking methods.
8f1dcff
to
b8d90fb
Compare
@ARMmbed/mbed-os-core Would anyone fancy a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Mail
andMemoryPool
did not permit access to the blocking form of allocation available in CMSIS-RTOS 2 - give them new blocking methods.Fixes #10216.
Pull request type
Release Notes
Mail
andMemoryPool
now provide blocking forms ofalloc
calls that can sleep the thread until a memory block is available.