diff options
| author | Stanley <[email protected]> | 2022-04-20 18:35:17 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-21 09:35:17 +0800 |
| commit | ef7280826f50377ad7b426f90211d6c7e4d91035 (patch) | |
| tree | 1d7b1a4e9f029ee9c86015b9bcaf656fc29bfdcc /src/ipc.c | |
| parent | 77900ab4202d3563d44ae25346c662ab7bf70617 (diff) | |
correct descriptions (#5849)
* correct descriptions
correct descriptions in ipc.c and timer.c
Co-authored-by: Stanley <[email protected]>
Diffstat (limited to 'src/ipc.c')
| -rw-r--r-- | src/ipc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2230,7 +2230,14 @@ RTM_EXPORT(rt_mb_urgent); * @param value is a flag that you will set for this mailbox's flag. * You can set an mailbox flag, or you can set multiple flags through OR logic operations. * - * @param timeout is a timeout period (unit: an OS tick). + * @param timeout is a timeout period (unit: an OS tick). If the mailbox object is not avaliable in the queue, + * the thread will wait for the object in the queue up to the amount of time specified by this parameter. + * + * NOTE: + * If use Macro RT_WAITING_FOREVER to set this parameter, which means that when the + * mailbox object is unavailable in the queue, the thread will be waiting forever. + * If use macro RT_WAITING_NO to set this parameter, which means that this + * function is non-blocking and will return immediately. * * @return Return the operation status. When the return value is RT_EOK, the operation is successful. * If the return value is any other values, it means that the mailbox release failed. |
