Changes between Version 16 and Version 17 of library_mwmr
- Timestamp:
- Oct 30, 2015, 10:15:40 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_mwmr
v16 v17 24 24 WARNING (ii) The channel must be declared in a non cacheable segment, if the platform does not provide hardware cache coherence. 25 25 26 The '''mwmr_read()''' and '''mwmr_write() blocking accessfunctions can be used to implement a parallel application complying with the KPN (Kahn Process Network) semantic.26 The '''mwmr_read()''' and '''mwmr_write()''' blocking functions can be used to implement a parallel application complying with the KPN (Kahn Process Network) semantic. 27 27 28 The '''nb_mwmr_read()''' and '''nb_mwmr_write() are non blocking access thatcan be used to implement various higher level communication protocols.28 The '''nb_mwmr_read()''' and '''nb_mwmr_write()''' non blocking functions can be used to implement various higher level communication protocols. 29 29 30 30 Besides the MWMR channels, the MWMR library provide another - optional - service: The '''mwmr_bufio_t''' buffer (and the associated access functions) can be used to implement a private input or output buffer, and move data to or from a shared MWMR communication channel. This buffer can be declared as a local variable in the stack of the reader/writer thread, and simplifies the access to the MWMR channel when the transfered data have a non fixed format, and must be analysed or produced byte per byte: an input buffer is automatically refill when it becomes empty; an output buffer is automatically flushed when it becomes full