doc: fixes errors pipes wiki entry
Moves the 'Flushing a Pipe' code example to the correct location and section and re-adds the 'Suggested Uses' text missing compared to v2.7. Signed-off-by: Archie Atkinson <archie.atkinson@chiaro.co.uk>
This commit is contained in:
parent
6a9243c13e
commit
26d2c12884
1 changed files with 10 additions and 3 deletions
|
@ -200,9 +200,6 @@ All data in the pipe is flushed by calling :c:func:`k_pipe_flush`.
|
|||
The following code builds on the examples above, and flushes all the
|
||||
data in the pipe.
|
||||
|
||||
Suggested uses
|
||||
**************
|
||||
|
||||
.. code-block:: c
|
||||
|
||||
void monitor_thread(void)
|
||||
|
@ -215,6 +212,16 @@ Suggested uses
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
Suggested uses
|
||||
**************
|
||||
|
||||
Use a pipe to send streams of data between threads.
|
||||
|
||||
.. note::
|
||||
A pipe can be used to transfer long streams of data if desired. However it is often preferable to send pointers to large data items to avoid copying the data.
|
||||
|
||||
|
||||
Configuration Options
|
||||
*********************
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue