Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
You do not have the correct permissions to perform this operation. Please, contact us at support@mbed.com to gain full access.
×
RTOS MAIL
The example 'send_thread' task uses the following code to allocate a buffer
The call to 'alloc' returns under all circumstances, e.g. when there are no buffers to be allocated. The result is that a fault occurs only when the buffer hits its limit.
will force the thread to wait until a buffer becomes available (assuming this is the effect you want).
The RTX documentation at Keil uses 'osWaitForever' in their example code.
Jim herd