Commit 8200ac8f authored by Arnaud Blanchard's avatar Arnaud Blanchard
parents b5de0e01 d193b2a8
......@@ -5,7 +5,7 @@ BLC channel
- Author : [Arnaud Blanchard](http://arnaudblanchard.thoughtsheet.com)
- Licence : [CeCILL v2.1](http://www.cecill.info/licences/Licence_CeCILL_V2-en.html)
Functions to easily share data through shared memory (shm_... functions). It is the fastest, and the more econom in memory ( no copy in each process ), way to share informtation between processes. At this moment it only works in asynchronous mode.
Functions to easily share data through shared memory (shm_... functions). It is the fastest, and the more econom in memory ( no copy in each process ), way to share informtation between processes.
Example
=======
......@@ -61,10 +61,10 @@ Two semaphores associated to the shared memory are created:
Proccesses which do not consider synchronisation use starting char '/'
`[writer]/->[reader]` means no synchronization
`[writer].->[reader]` means the reader waits for new data from the writer
`[writer]^->[reader]` means the writer waits for the reader to read and acknowledge the data
`[writer]:->[reader]` means both direction synchronization. The writer waits for acknowledgement and the reader wait for new data from the writer.
- `/channel_name` means no synchronization
- `.channel_name` means the reader waits for new data from the writer
- `^channel_name` means the writer waits for the reader to read and acknowledge the data
- `:channel_name` (default) means both direction synchronization. The writer waits for acknowledgement and the reader wait for new data from the writer.
While opening a channel
-----------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment