mirror of https://github.com/ARMmbed/mbed-os.git
To line up with MemoryPool/Mail alloc, rework naming of get/put
Queue::get -> try_get, try_get_for
Queue::put -> try_put, try_put_for
Mail::get -> try_get, try_get_for
Mail::put (no change, but assert that it works)
In the future the names `get` and `put` can be used for untimed blocking
operations. In the interim, you have to use
`try_get_for(Kernel::wait_for_u32_forever)`.
`Mail::put` differs in that it has always been a non-blocking call, but
it can be assumed to always succeed when used correctly, because the
Queue has enough room to store a pointer to every block in the
MemoryPool. It could in future be made a `void` return, similar to the
change made to `Mutex::lock`.
|
||
|---|---|---|
| .. | ||
| source | ||
| ConditionVariable.h | ||
| EventFlags.h | ||
| Kernel.h | ||
| LICENSE-mit.txt | ||
| LICENSE.md | ||
| Mail.h | ||
| MemoryPool.h | ||
| Mutex.h | ||
| Queue.h | ||
| Semaphore.h | ||
| ThisThread.h | ||
| Thread.h | ||
| mbed_lib.json | ||
| mbed_rtos1_types.h | ||
| mbed_rtos_storage.h | ||
| mbed_rtos_types.h | ||
| rtos.h | ||